Ver Fonte

Fix format of Cache-Control header

Matt Robenolt há 10 anos atrás
pai
commit
3e9adeefbc
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      pkg/api/dashboard_snapshot.go

+ 1 - 1
pkg/api/dashboard_snapshot.go

@@ -35,6 +35,6 @@ func GetDashboardSnapshot(c *middleware.Context) {
 		Meta:  dtos.DashboardMeta{IsSnapshot: true},
 	}
 
-	c.Resp.Header().Set("Cache-Control", "public max-age: 31536000")
+	c.Resp.Header().Set("Cache-Control", "public, max-age=31536000")
 	c.JSON(200, dto)
 }