Added the caching header to the attachment.php:
header("Cache-control: max-age=31536000, public");
Now, if you have already viewed the attachment (not the thumbnail, but the actual attachment), it will be taken from the cache.
However, the big media files can not be played fully ("partially loaded"). There should be another HTML header for that. Reading the documentation....
header("Cache-control: max-age=31536000, public");
Now, if you have already viewed the attachment (not the thumbnail, but the actual attachment), it will be taken from the cache.
However, the big media files can not be played fully ("partially loaded"). There should be another HTML header for that. Reading the documentation....
