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

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


Hello!

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?
> 
> http://mailman.nginx.org/pipermail/nginx/2011-September/028926.html

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:
 
http://nginx.org/r/proxy_cache_use_stale

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

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list