proxy_cache_background_update after cache expiry

IgorR nginx-forum at
Thu Apr 6 07:25:37 UTC 2017

thank you Maxim, 

the resourse was saved to cache but was quickly expiring in the browser
causing a Cache-Control: no-cache header to be sent.

Sending something like 


together with Last-Modified/ETag from the upstream server seem to be getting
me where I want.

Thanks for pointing me in the right direction.

@jeanpaul: I didn't have the chance to check your idea since taking a closer
look at the headers really helped moving forward.

Posted at Nginx Forum:,273417,273439#msg-273439

More information about the nginx mailing list