微信浏览器怎么禁止缓存静态页面-通过nginx配置
2019-10-11 本文已影响0人
棒打耗子v5
微信浏览器怎么禁止缓存静态页面
server{
listen 80;
server_name xxxx.com;
location / {
proxy_pass http://xxxxx;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#### kill cache
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
if_modified_since off;
expires off;
etag off;
}
}