vue nginx缓存

location ~* /front/.*\index.html$ {
error_page 405 =200 $uri;
#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{
root html;
index index.html index.htm;
error_page 405 =200 $uri;
#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 @ 2019-11-27 18:54  飞晨信息  阅读(803)  评论(0)    收藏  举报