百度了下很多答案都說這樣修改:
location ~ .*/.(css|js)$ {
add_header Cache-Control 'no-store';
}
可是修改之後依然沒作用
發現是vagrant的原因 打開nginx 將sendfile on 修改爲sendfile off;即可;
百度了下很多答案都說這樣修改:
location ~ .*/.(css|js)$ {
add_header Cache-Control 'no-store';
}
可是修改之後依然沒作用
發現是vagrant的原因 打開nginx 將sendfile on 修改爲sendfile off;即可;