guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/04: nginx: hydra.gnu.org: Add 'Cache-Control' header for static thing


From: Ludovic Courtès
Subject: 04/04: nginx: hydra.gnu.org: Add 'Cache-Control' header for static things.
Date: Thu, 17 Mar 2016 14:21:19 +0000

civodul pushed a commit to branch master
in repository maintenance.

commit 27281770651aa4226fd45df05a07c6fa42733c43
Author: Ludovic Courtès <address@hidden>
Date:   Thu Mar 17 15:20:49 2016 +0100

    nginx: hydra.gnu.org: Add 'Cache-Control' header for static things.
---
 hydra/nginx/hydra.gnu.org-locations.conf |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hydra/nginx/hydra.gnu.org-locations.conf 
b/hydra/nginx/hydra.gnu.org-locations.conf
index 6f0fbe9..d873826 100644
--- a/hydra/nginx/hydra.gnu.org-locations.conf
+++ b/hydra/nginx/hydra.gnu.org-locations.conf
@@ -53,6 +53,9 @@ location ~ /(nix-cache-info|static|logo|favicon\.ico) {
     # to enable caching.
     proxy_hide_header    Set-Cookie;
     proxy_ignore_headers Set-Cookie;
+
+    # Tell browsers to cache these things.
+    expire 10d;
 }
 
 location ~ \.narinfo$ {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]