diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-11 20:32:34 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-11 20:32:34 -0800 |
commit | c1111448053df9ac03835b66af9c1499783def2a (patch) | |
tree | da7417e025376484ef89119fea33aae8f778bf43 /system/db/cache.go | |
parent | 3fa96eea557c4951d473f301d5172c5d7a870376 (diff) |
updating cache control header to be more lenient
Diffstat (limited to 'system/db/cache.go')
-rw-r--r-- | system/db/cache.go | 4 |
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 != "" { |