Skip to content

Commit 499b0dd

Browse files
authored
don't cache config.js
1 parent 31d0c81 commit 499b0dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/server.go

+1
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ func (s *Server) handleWebConfig(w http.ResponseWriter, _ *http.Request, _ *visi
593593
return err
594594
}
595595
w.Header().Set("Content-Type", "text/javascript")
596+
w.Header().Set("Cache-Control", "no-cache")
596597
_, err = io.WriteString(w, fmt.Sprintf("// Generated server configuration\nvar config = %s;\n", string(b)))
597598
return err
598599
}

0 commit comments

Comments
 (0)