配置不走缓存

#公司测试化境经常更新前端代码,需要关闭缓存
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;
    }

 

posted @ 2020-09-11 15:30  六月OvO  阅读(126)  评论(0编辑  收藏  举报