Failing to cache requests

Francis Daly francis at daoine.org
Sun Sep 22 12:25:57 UTC 2019


On Sat, Sep 21, 2019 at 01:02:57PM -0500, Andrei wrote:

Hi there,

> I'm having a hard time understanding why these requests aren't being cached
> for 10 minutes? Is it the cookies?

Yes.

http://nginx.org/r/proxy_cache_valid

"""
If the header includes the “Set-Cookie” field, such a response will not be cached.
"""

> If so how can I avoid this and force cache?

"""
Processing of one or more of these response header fields can be disabled using the proxy_ignore_headers directive.
"""

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list