Welcome! Log In Create A New Profile

Advanced

expires headers and cache control

October 25, 2010 12:44PM
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.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

expires headers and cache control

iberkner October 25, 2010 12:44PM

Re: expires headers and cache control

Francis Daly October 25, 2010 02:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready