为了调试方便有时咱们须要禁用缓存,然后端的proxy或者cgi程序设置了缓存相关的header,咱们能够经过配置nginx的proxy_ignore_headers来禁用缓存nginx
bashproxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;