From 79b1d6df8b2e999e35991f2ea4471351190d3277 Mon Sep 17 00:00:00 2001 From: Tobias Peters Date: Mon, 23 Aug 2021 10:27:37 +0200 Subject: [PATCH] prevent passing requests while filling the cache --- .../etc/nginx/sites-available/generic.conf.d/root/20_cache.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/overlay/etc/nginx/sites-available/generic.conf.d/root/20_cache.conf b/overlay/etc/nginx/sites-available/generic.conf.d/root/20_cache.conf index 294a6a4..091a45f 100644 --- a/overlay/etc/nginx/sites-available/generic.conf.d/root/20_cache.conf +++ b/overlay/etc/nginx/sites-available/generic.conf.d/root/20_cache.conf @@ -11,6 +11,7 @@ # getting the file multiple times. proxy_cache_lock on; proxy_cache_lock_timeout 1h; + proxy_cache_lock_age 1h; # Allow the use of state entries proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;