location ~* \.(php|jsp|cgi|asp|aspx)$
{
proxy_pass 域名;
proxy_set_header Host 域名;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
}
location /
{
proxy_pass 域名;
proxy_set_header Host 域名;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
proxy_ignore_headers Set-Cookie Cache-Control expires;
add_header Cache-Control no-cache;
expires -1;
}
搜索了下 把 expires 12h; 改成了 expires -1;
也没用
关闭反代缓存依旧还是会缓存内容
因为是用的wordpress
很多动态内容
一直被缓存覆盖
应该怎么改才能彻底关闭缓存呢
|
|