Skip to content

Commit 043738a

Browse files
Merge pull request #1098 from wunter8/patch-6
don't cache config.js
2 parents fb52ad6 + 499b0dd commit 043738a

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)