expires headers and cache control

Ilan Berkner iberkner at gmail.com
Mon Oct 25 20:38:37 MSD 2010


Hi All,

I'm trying to understand expires headers and cache control better, maybe
someone can help?

our configuration file has:

      location ~* \.(jpg|jpeg|gif|png|ico|css|js)$
        {
                error_page 404 = /404.php;
                expires 31d;
        }

Which I understand to mean that for these file types, the expiration header
should be set to 31 days from today.  However, when I load the site, it
looks like its being set 1 day ahead.

I've also seen a lot of examples which use "add_header Cache-Control
private;" but I don't understand what this actually means?

Thanks for any input / help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101025/3e7ebfee/attachment.html>


More information about the nginx mailing list