当前位置: 移动技术网 > IT编程>网页制作>CSS > 前端测试干掉缓存

前端测试干掉缓存

2019年08月21日  | 移动技术网IT编程  | 我要评论

 

 

通过配置nginx干掉 304  (from memory cache) (from disk cache)

 

server {
    listen 8080;
    server_name localhost;

    location / {
        root /your/site/public;
        index ;

        # kill cache
        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;
    }
}

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网