kill 缓存

location /front/js/stat.js{
root html;
#kill 缓存
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;
}

 

location /front/js/stat.js{
root /home/nginx/nginx-1.12.1/;
#kill 缓存
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;
}

posted @ 2020-03-21 07:27  飞晨信息  阅读(94)  评论(0)    收藏  举报