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

2020-04-06 Thread J.R.
> The Age header is the HTTP/1.1 way to decrement effective value of > max-age, see here: > > https://tools.ietf.org/html/rfc7234#section-4.2.3 Interesting... Well, I solved the issue by simply removing the 'max-age' portion from the 'cache-control' header, keeping the other portion. Expiration i

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

2020-04-06 Thread Maxim Dounin
Hello! On Mon, Apr 06, 2020 at 12:25:44PM -0500, J.R. wrote: > > There is no Age header support in nginx as of now (relevant ticket > > in Trac: https://trac.nginx.org/nginx/ticket/146). If you want > > pages to expire at a specific time regardless of intermediate > > caching, consider using the

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

2020-04-06 Thread J.R.
> There is no Age header support in nginx as of now (relevant ticket > in Trac: https://trac.nginx.org/nginx/ticket/146). If you want > pages to expire at a specific time regardless of intermediate > caching, consider using the "Expires" header. The 'age' header appears to be something else... Wh

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

2020-04-06 Thread Maxim Dounin
Hello! On Mon, Apr 06, 2020 at 10:26:04AM -0500, J.R. wrote: > This was driving me crazy and I think I've figured out the problem. > > I started using the proxy cache (which is great, saves regenerating a > lot of dynamic pages), except a bunch of my pages expire at a very > specific time, at th

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

2020-04-06 Thread J.R.
This was driving me crazy and I think I've figured out the problem. I started using the proxy cache (which is great, saves regenerating a lot of dynamic pages), except a bunch of my pages expire at a very specific time, at the start of the hour, and my cache-control / expires headers reflect that,