mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
Fix more Cache-Control headers
`max-age` is always with an `=`, not a `:`.
This commit is contained in:
parent
789363b0ad
commit
5286f0856d
@ -66,12 +66,12 @@ func newMacaron() *macaron.Macaron {
|
||||
|
||||
func mapStatic(m *macaron.Macaron, dir string, prefix string) {
|
||||
headers := func(c *macaron.Context) {
|
||||
c.Resp.Header().Set("Cache-Control", "public, max-age: 3600")
|
||||
c.Resp.Header().Set("Cache-Control", "public, max-age=3600")
|
||||
}
|
||||
|
||||
if setting.Env == setting.DEV {
|
||||
headers = func(c *macaron.Context) {
|
||||
c.Resp.Header().Set("Cache-Control", "max-age: 0, must-revalidate")
|
||||
c.Resp.Header().Set("Cache-Control", "max-age=0, must-revalidate, no-cache")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user