[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: hydra: nginx: Add ‘Cache-Control’ header on /{pac
From: |
Ludovic Courtès |
Subject: |
branch master updated: hydra: nginx: Add ‘Cache-Control’ header on /{packages,sources}.json. |
Date: |
Tue, 10 Oct 2023 04:49:38 -0400 |
This is an automated email from the git hooks/post-receive script.
civodul pushed a commit to branch master
in repository maintenance.
The following commit(s) were added to refs/heads/master by this push:
new e712907 hydra: nginx: Add ‘Cache-Control’ header on
/{packages,sources}.json.
e712907 is described below
commit e712907558c02c4e928c76c191c59c72503954c2
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Oct 10 10:47:36 2023 +0200
hydra: nginx: Add ‘Cache-Control’ header on /{packages,sources}.json.
This allows for client-side caching.
* hydra/modules/sysadmin/nginx.scm (guix.gnu.org-other-locations): Add
“expires” directives for /{packages,sources}.json.
---
hydra/modules/sysadmin/nginx.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hydra/modules/sysadmin/nginx.scm b/hydra/modules/sysadmin/nginx.scm
index aadcfaa..631993d 100644
--- a/hydra/modules/sysadmin/nginx.scm
+++ b/hydra/modules/sysadmin/nginx.scm
@@ -705,12 +705,14 @@ synonymous IETF language tags that should be mapped to
the same $lang."
(uri "= /packages.json")
(body (list "if_modified_since exact;"
"gzip_static always;\n"
+ "expires 3h;\n" ;it's updated 4 times a day
"root /srv/package-metadata;")))
(nginx-location-configuration
(uri "= /sources.json")
(body (list "if_modified_since exact;"
"gzip_static always;\n"
+ "expires 3h;\n" ;it's updated 4 times a day
"root /srv/package-metadata;")))
(nginx-location-configuration ;certbot
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: hydra: nginx: Add ‘Cache-Control’ header on /{packages,sources}.json.,
Ludovic Courtès <=