Welcome! Log In Create A New Profile

Advanced

Re: only html file no-cache

December 29, 2011 07:41AM
solved
location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|txt|js|css|html|htm|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso)$ {
expires 7d;
try_files $uri @backend;
}
location ~.*\.(html|htm)$ {
add_header Pragma "no-cache";
try_files $uri @backend;
}
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: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready