[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: hydra: bayfront: Cache the root of packages.guix.
From: |
Ludovic Courtès |
Subject: |
branch master updated: hydra: bayfront: Cache the root of packages.guix.gnu.org as well. |
Date: |
Fri, 09 Feb 2024 09:35:31 -0500 |
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 000a44b hydra: bayfront: Cache the root of packages.guix.gnu.org as
well.
000a44b is described below
commit 000a44bb35141bd4e1157ff88b84b97879209517
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Feb 9 15:34:09 2024 +0100
hydra: bayfront: Cache the root of packages.guix.gnu.org as well.
* hydra/bayfront.scm (%packages.guix.gnu.org-nginx-servers): Add
location block for /.
---
hydra/bayfront.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index 8773df3..7c4f333 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -1041,6 +1041,16 @@ proxy_set_header Via $via;"
"add_header Cache-Control max-age=21600;")))
+ ;; The home page is generated on-the-fly, with a selection of
+ ;; packages, but that too is usually too slow--cache it as well!
+ (nginx-location-configuration
+ (uri "= /")
+ (body `(,@base
+ "proxy_cache static;"
+ "proxy_cache_valid 200 15m;" ;cache hits for a while
+ "proxy_cache_valid any 1m;"
+ "add_header Cache-Control max-age=300;")))
+
(nginx-location-configuration
(uri "/")
(body base))))))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: hydra: bayfront: Cache the root of packages.guix.gnu.org as well.,
Ludovic Courtès <=