微信浏览器怎么禁止缓存静态页面-通过nginx配置

微信浏览器怎么禁止缓存静态页面

server{
        listen 80;
        server_name xxxx.com;
        location / {
            proxy_pass         http://xxxxx;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            #### 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;
        }
    }

你可能感兴趣的:(微信浏览器怎么禁止缓存静态页面-通过nginx配置)