From c1111448053df9ac03835b66af9c1499783def2a Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sun, 11 Dec 2016 20:32:34 -0800 Subject: updating cache control header to be more lenient --- system/db/cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/db/cache.go') 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 != "" { -- cgit v1.2.3