summaryrefslogtreecommitdiff
path: root/system/db/cache.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-11 20:32:34 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-11 20:32:34 -0800
commitc1111448053df9ac03835b66af9c1499783def2a (patch)
treeda7417e025376484ef89119fea33aae8f778bf43 /system/db/cache.go
parent3fa96eea557c4951d473f301d5172c5d7a870376 (diff)
updating cache control header to be more lenient
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 != "" {