Added custom cache control headers for static content

This commit is contained in:
Torkel Ödegaard
2015-03-23 18:28:59 -04:00
parent 98c0209976
commit 5f0e7cd52a
6 changed files with 267 additions and 38 deletions
+1
View File
@@ -35,5 +35,6 @@ func GetDashboardSnapshot(c *middleware.Context) {
Meta: dtos.DashboardMeta{IsSnapshot: true},
}
c.Resp.Header().Set("Cache-Control", "public max-age: 31536000")
c.JSON(200, dto)
}