Quote:
Originally Posted by mariosipad
I tried to implement a cache header on my WAMP (Windows 7/Apache) server, but the results were not as consistent as I would expect them to be.
Did you use any specific settings for COPS?
I will try the cache header settings on my Debian COPS server later. Maybe the results are more consistent there. Or maybe I need to read up about this topic some more!
|
In theory there nothing to add in Apache config if your library is outside your web directory. Thoses lines in fetch.php tell the browser to keep the images 14 days :
Code:
$expires = 60*60*24*14;
header("Pragma: public");
header("Cache-Control: maxage=".$expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');