Nginx proxy cache doesn't update cache-control max-age time!

J.R. themadbeaker at
Mon Apr 6 23:56:26 UTC 2020

> The Age header is the HTTP/1.1 way to decrement effective value of
> max-age, see here:


Well, I solved the issue by simply removing the 'max-age' portion from
the 'cache-control' header, keeping the other portion. Expiration is
handled strictly from the 'expires' tag, which seems to be valid
according to one of those RFC's. Testing things out and caching
expires exactly when it is supposed to! So happy I can keep the proxy
cache enabled now!

More information about the nginx mailing list