Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_background_update after cache expiry

April 06, 2017 03:25AM
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

Cache-Control: public,max-age=15,s-maxage=240;must-revalidate,stale-while-revalidate=240

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.
Subject Author Posted

proxy_cache_background_update after cache expiry

IgorR April 05, 2017 07:32AM

Re: proxy_cache_background_update after cache expiry

jeanpaul April 05, 2017 10:06AM

Re: proxy_cache_background_update after cache expiry

Maxim Dounin April 05, 2017 10:54AM

Re: proxy_cache_background_update after cache expiry

IgorR April 06, 2017 03:25AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 255
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready