设为首页 加入收藏

TOP

前端测试干掉缓存
2019-09-03 03:42:48 】 浏览:44
Tags:前端 测试 干掉

 

 

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

 

server {
    listen 8080;
    server_name localhost;

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

        # kill cache
        add_header Last-Modified $date_gmt;
        add_header Cache-Control 'no-store, no-cache, must-reva lidate, proxy-reva lidate, max-age=0';
        if_modified_since off;
        expires off;
        etag off;
    }
}

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇前端渲染图片报403问题解决方案 下一篇正则限制input负数输入

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目