Skip to content

Commit

Permalink
Merge pull request #1098 from wunter8/patch-6
Browse files Browse the repository at this point in the history
don't cache config.js
  • Loading branch information
binwiederhier authored May 8, 2024
2 parents fb52ad6 + 499b0dd commit 043738a
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 043738a

Please sign in to comment.