proxy_cache not working

dekar411 nginx-forum at nginx.us
Thu Jun 23 17:20:59 MSD 2011


> Most likely reason is that response headers
> (Cache-Control, 
> Expires, presence of Set-Cookie header) disable
> caching.
> 
> Maxim Dounin

You are right, adding:

proxy_ignore_headers Cache-Control Expires;

Fixes the problem.

Thanks a lot!

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,209334,209377#msg-209377




More information about the nginx mailing list