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;
}

浙公网安备 33010602011771号