Welcome! Log In Create A New Profile

Advanced

Re: only html file no-cache

Nginx User
December 31, 2011 08:28AM
Try this shorter form:

location / {
location ~ \.(html|htm)$ {
# "pragma" is not a valid header here
add_header Cache-Control "no-cache, no-store";
try_files $uri @backend;
}
expires 7d;
try_files $uri @backend;
}

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

only html file no-cache

codetr December 28, 2011 01:50PM

Re: only html file no-cache

codetr December 28, 2011 05:07PM

Re: only html file no-cache

codetr December 29, 2011 07:41AM

Re: only html file no-cache

Nginx User December 31, 2011 08:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
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