guix-commits
[Top][All Lists]
Advanced

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

02/02: hydra: bayfront: Compress fonts for hpc.guix.info.


From: Ludovic Courtès
Subject: 02/02: hydra: bayfront: Compress fonts for hpc.guix.info.
Date: Thu, 7 Mar 2024 08:57:40 -0500 (EST)

civodul pushed a commit to branch master
in repository maintenance.

commit 7580299d50317506c1e042b2f4357774083df60f
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Mar 7 14:56:43 2024 +0100

    hydra: bayfront: Compress fonts for hpc.guix.info.
    
    * hydra/bayfront.scm (%hpc.guix.info-nginx-servers): Add “gzip on” to
    /static/fonts.
---
 hydra/bayfront.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index 3d7f114..1e140f1 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -456,7 +456,8 @@ add_header X-Frame-Options SAMEORIGIN;\n")
           ;; Improve caching for CSS, images, fonts, etc.
           (nginx-location-configuration
            (uri "/static/fonts")                  ;.ttf files don't change
-           (body `(,(string-append
+           (body `("gzip on;"
+                   ,(string-append
                      "add_header Cache-Control max-age="
                      (number->string (* 3600 24 30))) ";")))
           (nginx-location-configuration



reply via email to

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