nginx配置取消缓存,解决页面返回304状态
·
location /test {
root html;
index index.html index.htm;
expires -1;
if_modified_since off;
add_header Last-Modified "";
add_header Cache-Control no-cache;
etag off;
}
更多推荐
location /test {
root html;
index index.html index.htm;
expires -1;
if_modified_since off;
add_header Last-Modified "";
add_header Cache-Control no-cache;
etag off;
}
更多推荐
所有评论(0)