配置不走缓存
#公司测试化境经常更新前端代码,需要关闭缓存
1.使用无痕模式
2.开启浏览器 Disable cache
3.配置nginx
location ~* \.(jpg|png|gif)$ {
root /code/cache;
add_header Cache-Control no-cache;
etag off;
if_modified_since off;
}
本文来自博客园,作者:六月OvO,转载请注明原文链接:https://www.cnblogs.com/chenlifan/p/13651984.html

浙公网安备 33010602011771号