Is stale-while-revalidate (RFC 5861) currently supported in nginx?

Maxim Dounin mdounin at
Mon Dec 14 15:00:38 UTC 2015


On Sun, Dec 13, 2015 at 01:32:12PM -0800, Adrian D'Atri-Guiran wrote:

> There is a very old post from September, 2011 which says it is not
> supported, I am just wondering if anything has changed since then?

Using stale responses in nginx is controlled by the 
proxy_cache_use_stale directive, which predated RFC 5861 and works 
slightly differently.  See here for details:

No support for Cache-Control extensions defined by RFC 5861 is 
currently implemented.

Maxim Dounin

More information about the nginx mailing list