Skip to content

Commit bf997d5

Browse files
committed
Fix: remove invalid 'expired' value from proxy_cache_use_stale
proxy_cache_use_stale does not support 'expired'. Stale-on-expiry is handled by 'updating' + proxy_cache_background_update on — nginx serves the stale entry and revalidates in the background when proxy_cache_valid time elapses.
1 parent 1d67307 commit bf997d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ http {
3030
proxy_cache_valid 400 ${CACHE_STALE_TIME};
3131
proxy_cache_valid 404 600s;
3232

33-
proxy_cache_use_stale error timeout expired updating http_500 http_502 http_503 http_504 http_404;
33+
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504 http_404;
3434
proxy_cache_background_update on;
3535
proxy_cache_lock on;
3636
proxy_cache_lock_timeout 30s;

0 commit comments

Comments
 (0)