From e52c8fdc6986d19e88e62cc6b51bb9d3b432b521 Mon Sep 17 00:00:00 2001 From: Kristian Klausen <kristian@klausen.dk> Date: Sat, 10 Jul 2021 17:37:17 +0200 Subject: [PATCH] mailman: Ensure the public archives aren't cached by the browser It confuses the users that the browser is caching them (due to heuristic[1]). [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#heuristic_freshness_checking --- roles/mailman/templates/nginx.d.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/mailman/templates/nginx.d.conf.j2 b/roles/mailman/templates/nginx.d.conf.j2 index accb7e83b..3266d9dd8 100644 --- a/roles/mailman/templates/nginx.d.conf.j2 +++ b/roles/mailman/templates/nginx.d.conf.j2 @@ -39,6 +39,7 @@ server { location /pipermail { alias /var/lib/mailman/archives/public; + add_header Cache-Control "public, no-cache"; autoindex on; } -- GitLab