GNU bug report logs -
#37207
nginx serving files from the store returns Last-Modified = Epoch
Previous Next
Full log
View this message in rfc822 format
* hydra/nginx/berlin.scm (%berlin-servers): Add some config to the
nginx-server-configurations for guix.gnu.org.
---
hydra/nginx/berlin.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/hydra/nginx/berlin.scm b/hydra/nginx/berlin.scm
index 303fd35..8c90eb1 100644
--- a/hydra/nginx/berlin.scm
+++ b/hydra/nginx/berlin.scm
@@ -514,6 +514,13 @@ PUBLISH-URL."
(locations guix.gnu.org-locations)
(raw-content
(list
+ ;; TODO This works around NGinx using the epoch for the
+ ;; Last-Modified date, as well as the etag.
+ ;; See http://issues.guix.info/issue/37207
+ "add_header Last-Modified \"\";"
+ "if_modified_since off;"
+ "etag off;"
+
"access_log /var/log/nginx/guix-info.access.log;")))
(nginx-server-configuration
@@ -634,6 +641,13 @@ PUBLISH-URL."
(append
%tls-settings
(list
+ ;; TODO This works around NGinx using the epoch for the
+ ;; Last-Modified date, as well as the etag.
+ ;; See http://issues.guix.info/issue/37207
+ "add_header Last-Modified \"\";"
+ "if_modified_since off;"
+ "etag off;"
+
"access_log /var/log/nginx/guix-gnu-org.https.access.log;"))))
(nginx-server-configuration
--
2.26.2
This bug report was last modified 5 years and 19 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.