[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: nginx: hydra.gnu.org: Increase the validity period of cache hits.
From: |
Ludovic Courtès |
Subject: |
01/01: nginx: hydra.gnu.org: Increase the validity period of cache hits. |
Date: |
Tue, 27 Sep 2016 12:15:35 +0000 (UTC) |
civodul pushed a commit to branch master
in repository maintenance.
commit 2394813e7466ee47f17b4d6c056bc9b5692f2023
Author: Ludovic Courtès <address@hidden>
Date: Tue Sep 27 14:13:12 2016 +0200
nginx: hydra.gnu.org: Increase the validity period of cache hits.
---
hydra/nginx/hydra.gnu.org-locations.conf | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hydra/nginx/hydra.gnu.org-locations.conf
b/hydra/nginx/hydra.gnu.org-locations.conf
index 7dfe1bf..a79c506 100644
--- a/hydra/nginx/hydra.gnu.org-locations.conf
+++ b/hydra/nginx/hydra.gnu.org-locations.conf
@@ -34,7 +34,7 @@ location /nar/ {
# Enable caching for nar files, to avoid reconstructing and recompressing
# archives.
proxy_cache nar;
- proxy_cache_valid 200 8d; # cache hits for 8 days.
+ proxy_cache_valid 200 15d; # cache hits for 15 days.
proxy_cache_valid 504 3m; # timeout, when the machine is overloaded
proxy_cache_valid any 1m; # cache misses/others for 1 min.
@@ -97,13 +97,13 @@ location ~ \.narinfo$ {
# Enable caching for narinfo files, to avoid recomputing nar signatures.
proxy_cache narinfo;
- proxy_cache_valid 200 7d; # cache hits for 7 days.
+ proxy_cache_valid 200 14d; # cache hits for 14 days.
proxy_cache_valid 504 2m; # timeout, when hydra.gnu.org is overloaded
proxy_cache_valid any 1m; # cache misses/others for 1 min.
# Add 'Expires' and 'Cache-Control' response headers so clients
# such as 'guix substitute' know how long they can cache it.
- expires 2d;
+ expires 5d;
proxy_ignore_client_abort on;