From 1e82b02baca0bbfe121a4a0699b0dd7a417222ec Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 15 Feb 2026 22:49:44 -0800 Subject: [PATCH] Use no-store to fully disable browser caching on assets --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 651b11e..c38b5e2 100644 --- a/main.go +++ b/main.go @@ -111,7 +111,7 @@ func envMap() map[string]string { func serveHTML(name string) http.HandlerFunc { t := htmlTemplates.Lookup(name) return func(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Cache-Control", "no-cache") + w.Header().Set("Cache-Control", "no-store") w.Header().Set("Content-Type", "text/html") t.Execute(w, templateData()) } @@ -120,7 +120,7 @@ func serveHTML(name string) http.HandlerFunc { func serveJS(name string) http.HandlerFunc { t := jsTemplates.Lookup(name) return func(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Cache-Control", "no-cache") + w.Header().Set("Cache-Control", "no-store") w.Header().Set("Content-Type", "application/javascript") t.Execute(w, templateData()) }