guix-commits
[Top][All Lists]
Advanced

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

01/02: hydra: nginx: Enable aggressive client-side caching of fonts.


From: Ludovic Courtès
Subject: 01/02: hydra: nginx: Enable aggressive client-side caching of fonts.
Date: Mon, 4 Mar 2024 10:59:29 -0500 (EST)

civodul pushed a commit to branch master
in repository maintenance.

commit 4aae466792c730609561a74b09c20d9f2ff17a32
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Mar 2 18:49:24 2024 +0100

    hydra: nginx: Enable aggressive client-side caching of fonts.
    
    * hydra/modules/sysadmin/nginx.scm (guix.gnu.org-other-locations): Add
    entry for /static/base/fonts.
---
 hydra/modules/sysadmin/nginx.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/hydra/modules/sysadmin/nginx.scm b/hydra/modules/sysadmin/nginx.scm
index 9284d29..c2ce8ea 100644
--- a/hydra/modules/sysadmin/nginx.scm
+++ b/hydra/modules/sysadmin/nginx.scm
@@ -1,5 +1,5 @@
 ;; Nginx configuration for ci.guix.gnu.org
-;; Copyright © 2016-2023 Ludovic Courtès <ludo@gnu.org>
+;; Copyright © 2016-2024 Ludovic Courtès <ludo@gnu.org>
 ;; Copyright © 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
 ;; Copyright © 2020 Christopher Baines <mail@cbaines.net>
 ;; Copyright © 2020, 2021 Florian Pelz <pelzflorian@pelzflorian.de>
@@ -665,6 +665,12 @@ synonymous IETF language tags that should be mapped to the 
same $lang."
     (body (list "alias /srv/cuirass-releases;")))
 
    ;; Let browsers cache files under /static for a while.
+
+   (nginx-location-configuration
+    (uri "/static/base/fonts")
+    (body (list "expires 30d;"                    ;fonts never change
+                "alias /srv/guix.gnu.org/static/base/fonts;")))
+
    ;; XXX: This is really a hack to work around the fact that we can't have
    ;; 'If-Modified-Since' because timestamps are zeroed.
    (nginx-location-configuration



reply via email to

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