修改nginx配置为不缓存
www为项目的目录
这问题困扰我很长时间了,总算解决了。
location /www/ {
proxy_pass http://xxxxx.cn;
index index.html index.htm;
root /root/www;
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;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}