don't cache config.js

This commit is contained in:
wunter8
2024-04-25 16:09:27 -06:00
committed by GitHub
parent 31d0c812ce
commit 499b0dd839

View File

@@ -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
}