Skip to content

Commit 2d6c92a

Browse files
committed
fix(config): extend cache lock age
By default these values are set the same - an extended timeout will not help much if the subsequent request is allowed through in a shorter timeframe https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_lock_age
1 parent 42e9967 commit 2d6c92a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
244244
# will wait for the first to finish instead of doing multiple upstream requests.
245245
proxy_cache_lock on;
246246
proxy_cache_lock_timeout 880s;
247+
proxy_cache_lock_age 880s;
247248

248249
# Cache all 200, 206 for 60 days default.
249250

0 commit comments

Comments
 (0)