| commit | ccbbb77d654d1e10469d168deb8445466ae06061 | [log] [tgz] |
|---|---|---|
| author | Roman Arutyunyan <arut@nginx.com> | Thu Dec 22 14:25:34 2016 +0300 |
| committer | Roman Arutyunyan <arut@nginx.com> | Thu Dec 22 14:25:34 2016 +0300 |
| tree | abe94ca9f27fa0322e0fda2ee4922e08e91bcdb9 | |
| parent | d07db6c27de2a95fec3ca4c38845b7c4347cfae8 [diff] |
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.