From 5286f0856d0f7c7765c709d0559d9ef168fbe8b1 Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Tue, 24 Mar 2015 17:30:26 -0700 Subject: [PATCH] Fix more Cache-Control headers `max-age` is always with an `=`, not a `:`. --- pkg/cmd/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/web.go b/pkg/cmd/web.go index 72f19f6675f..1fc6e8a999c 100644 --- a/pkg/cmd/web.go +++ b/pkg/cmd/web.go @@ -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") } }