civodul pushed a commit to branch master
in repository maintenance.

commit 7580299d50317506c1e042b2f4357774083df60f
Author: Ludovic Courtès <[email protected]>
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