From 499b0dd839779fec34579794980d95fb16f97ea3 Mon Sep 17 00:00:00 2001 From: wunter8 Date: Thu, 25 Apr 2024 16:09:27 -0600 Subject: [PATCH] don't cache config.js --- server/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/server.go b/server/server.go index c1ada4c6..f552a3c8 100644 --- a/server/server.go +++ b/server/server.go @@ -593,6 +593,7 @@ func (s *Server) handleWebConfig(w http.ResponseWriter, _ *http.Request, _ *visi return err } w.Header().Set("Content-Type", "text/javascript") + w.Header().Set("Cache-Control", "no-cache") _, err = io.WriteString(w, fmt.Sprintf("// Generated server configuration\nvar config = %s;\n", string(b))) return err }