mdounin at mdounin.ru
Fri Aug 7 18:17:55 UTC 2015
On Fri, Aug 07, 2015 at 07:12:21AM -0400, bugster86 wrote:
> proxy_ignore_headers "Cache-Control";
> #proxy_ignore_headers "Pragma";
> With a browser, I open a web page http://r60:81/site and I see all the
> content of the page.
> This is OK but I don't view anything in /tmp/nginx/cache (no cache files
> I expect it to be cached.
> Why proxy_ignore_headers "Cache-Control" doesn't work properly?
There are other headers in addition to Cache-Control which may
prevent caching of a response by nginx. Most notably, Expires and
Set-Cookie. Check if the response contains them to see if it's
See http://nginx.org/r/proxy_ignore_headers for a full list.
More information about the nginx