[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: nginx: mirror: Cache 404 et al. for 20m instead of 1h.
From: |
Ludovic Courtès |
Subject: |
01/01: nginx: mirror: Cache 404 et al. for 20m instead of 1h. |
Date: |
Fri, 5 May 2017 11:24:21 -0400 (EDT) |
civodul pushed a commit to branch master
in repository maintenance.
commit e80d0d51a98fa85ebd281a75360331c16c6d217c
Author: Ludovic Courtès <address@hidden>
Date: Fri May 5 17:22:40 2017 +0200
nginx: mirror: Cache 404 et al. for 20m instead of 1h.
* hydra/nginx/mirror-locations.conf (/nar/, \.narinfo, /log/): Cache
'any' for 20 minutes instead of 1 hour.
---
hydra/nginx/mirror-locations.conf | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hydra/nginx/mirror-locations.conf
b/hydra/nginx/mirror-locations.conf
index 6dfb760..27d8132 100644
--- a/hydra/nginx/mirror-locations.conf
+++ b/hydra/nginx/mirror-locations.conf
@@ -40,7 +40,7 @@ location ~ /nar/ {
proxy_cache nar;
proxy_cache_valid 200 91d; # cache hits for 3 months.
proxy_cache_valid 504 3m; # timeout, when hydra.gnu.org is overloaded
- proxy_cache_valid any 1h; # cache misses/others for 1h.
+ proxy_cache_valid any 20m; # cache misses/others for 20m
proxy_ignore_client_abort on;
@@ -77,7 +77,7 @@ location ~ \.narinfo$ {
proxy_cache narinfo;
proxy_cache_valid 200 30d; # cache hits for 1 month
proxy_cache_valid 504 5m; # timeout, when hydra.gnu.org is overloaded
- proxy_cache_valid any 1h; # cache misses/others for 1h.
+ proxy_cache_valid any 20m; # cache misses/others for 20m
# Use the above TTLs, not those advertised by hydra.gnu.org.
proxy_ignore_headers Expires Cache-Control;
@@ -104,7 +104,7 @@ location /log/ {
proxy_cache logs;
proxy_cache_valid 200 60d; # cache hits.
proxy_cache_valid 504 3m; # timeout, when hydra.gnu.org is overloaded
- proxy_cache_valid any 1h; # cache misses/others.
+ proxy_cache_valid any 20m; # cache misses/others
proxy_ignore_client_abort on;