]> git.kaiwu.me - nginx.git/commit
Cache: support for stale-while-revalidate and stale-if-error.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 22 Dec 2016 11:25:34 +0000 (14:25 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 22 Dec 2016 11:25:34 +0000 (14:25 +0300)
commitda2b2cf1e039630cec84e8b67d99c4d578361b0d
treeabe94ca9f27fa0322e0fda2ee4922e08e91bcdb9
parent42f3dd2b843157ea0982b165b69c5dad84095811
Cache: support for stale-while-revalidate and stale-if-error.

Previously, there was no way to enable the proxy_cache_use_stale behavior by
reading the backend response.  Now, stale-while-revalidate and stale-if-error
Cache-Control extensions (RFC 5861) are supported.  They specify, how long a
stale response can be used when a cache entry is being updated, or in case of
an error.
src/http/ngx_http_cache.h
src/http/ngx_http_file_cache.c
src/http/ngx_http_upstream.c