Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
Re: only html file no-cache
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
codetr
December 29, 2011 07:41AM
Registered: 13 years ago
Posts: 22
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;
}
Reply
Quote
RSS
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: 349
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018