nginx强制不缓存
文章目录
为了调试方便有时我们需要禁用缓存,而后端的proxy或者cgi程序设置了缓存相关的header,我们可以通过配置nginx的proxy_ignore_headers来禁用缓存
bashproxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
为了调试方便有时我们需要禁用缓存,而后端的proxy或者cgi程序设置了缓存相关的header,我们可以通过配置nginx的proxy_ignore_headers来禁用缓存
bashproxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论