guix-commits
[Top][All Lists]
Advanced

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

01/02: nginx: berlin: Do not override 'Cache-Control' on Cuirass /static


From: Ludovic Courtès
Subject: 01/02: nginx: berlin: Do not override 'Cache-Control' on Cuirass /static.
Date: Sun, 3 Sep 2023 11:44:53 -0400 (EDT)

civodul pushed a commit to branch master
in repository maintenance.

commit d30f295ea6dd1f792a0073524111a7f3b9eb888c
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Sep 1 10:47:58 2023 +0200

    nginx: berlin: Do not override 'Cache-Control' on Cuirass /static.
    
    * hydra/nginx/berlin.scm (berlin-locations): Remove "expires" directive
    for /static.  Change 'proxy_cache_valid' default duration.
---
 hydra/nginx/berlin.scm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/hydra/nginx/berlin.scm b/hydra/nginx/berlin.scm
index d1df1ba..21a32d7 100644
--- a/hydra/nginx/berlin.scm
+++ b/hydra/nginx/berlin.scm
@@ -167,11 +167,9 @@ PUBLISH-URL."
             (body
              (list
               "proxy_pass http://localhost:8081;";
-              ;; Let browsers cache this for a while.
-              "expires 10d;"
-              ;; Cache quite aggressively.
+              ;; Cuirass adds a 'Cache-Control' header, honor it.
               "proxy_cache static;"
-              "proxy_cache_valid 200 5d;"
+              "proxy_cache_valid 200 2d;"
               "proxy_cache_valid any 10m;"
               "proxy_ignore_client_abort on;")))
 



reply via email to

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