Skip to content

Commit

Permalink
don't cache config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wunter8 authored Apr 25, 2024
1 parent 31d0c81 commit 499b0dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 499b0dd

Please sign in to comment.