mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
API: Change how Cache-Control and related headers are set (#62021)
- change Cache-Control from no-cache to no-store - do not set (and remove if set) older Pragma/Expires
This commit is contained in:
@@ -69,9 +69,9 @@ func addSecurityHeaders(w web.ResponseWriter, cfg *setting.Cfg) {
|
||||
}
|
||||
|
||||
func addNoCacheHeaders(w web.ResponseWriter) {
|
||||
w.Header().Set("Cache-Control", "no-cache")
|
||||
w.Header().Set("Pragma", "no-cache")
|
||||
w.Header().Set("Expires", "-1")
|
||||
w.Header().Set("Cache-Control", "no-store")
|
||||
w.Header().Del("Pragma")
|
||||
w.Header().Del("Expires")
|
||||
}
|
||||
|
||||
func addXFrameOptionsDenyHeader(w web.ResponseWriter) {
|
||||
|
||||
Reference in New Issue
Block a user