View Single Post
Old 05-22-2013, 09:53 AM   #424
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
Quote:
Originally Posted by mariosipad View Post
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');
vlad59 is offline   Reply With Quote