summaryrefslogtreecommitdiff
path: root/system/db/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/db/cache.go')
-rw-r--r--system/db/cache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/db/cache.go b/system/db/cache.go
index bfca709..5f2dd03 100644
--- a/system/db/cache.go
+++ b/system/db/cache.go
@@ -14,8 +14,8 @@ import (
func CacheControl(next http.Handler) http.HandlerFunc {
return http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
etag := ConfigCache("etag")
- policy := fmt.Sprintf("max-age=%d, public, must-revalidate, proxy-revalidate", 60*60*24*30)
- res.Header().Add("Etag", etag)
+ policy := fmt.Sprintf("max-age=%d, public", 60*60*24*30)
+ res.Header().Add("ETag", etag)
res.Header().Add("Cache-Control", policy)
if match := req.Header.Get("If-None-Match"); match != "" {