Stale-While-Revalidate or Similar
Andreas Plesner Jacobsen
apj at mutt.dk
Tue Mar 20 11:30:04 CET 2012
On Tue, Mar 20, 2012 at 10:21:12AM +0000, Michael Borejdo wrote:
> > Yeah, you want grace mode:
> > https://www.varnish-cache.org/docs/trunk/tutorial/handling_misbehaving_servers.html#grace-mode
> As far as I tried, grace mode does serve stale content to 9999 / 10000 users,
> but one still has to refresh the cache and wait for the backend servers.
> Doing this async, does not seem to be supported by grace-mode, as far as I
> understood. Correct me, if I'm wrong.
You can use a local HTTP client to refresh content before it expires by setting
req.hash_always_miss. That way you keep control of which client takes the delay.
More information about the varnish-misc