Put another way -- can I store/cache all content from the proxied upstream (up to the limits defined in proxy_cache_path), but serve from the cache only when the proxied upstream fails (e.g. timeout, error)? We have content that should be dynamic, and hence every request should be transparently proxied. However, I want to protect against the situation when the upstream is down or having troublby shmapty - Nginx Mailing List - English
Greetings, I am trying to configure nginx proxy_cache so that it stores a cached copy of a HTTP response, but serves from cache *only* under the conditions defined by proxy_cache_use_stale. I have tried something like this without success: proxy_cache_valid 200 204 301 302 0s; proxy_cache_use_stale error timeout updating invalid_header http_500 http_502 http_504;by shmapty - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |