Commit c8687560 by Torkel Ödegaard

Merge pull request #1636 from mattrobenolt/patch-2

Fix more Cache-Control headers
parents 789363b0 5286f085
......@@ -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")
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment