diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-13 11:58:39 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-13 11:58:39 -0800 |
commit | 59ee9fbb237673c2d0cccad42f7adbae65852b8d (patch) | |
tree | 3326e7c43eef2483fff5e24b7e2f840fb94b4d38 /system/db/cache.go | |
parent | 3249b82b2a4f1aa0ae9e6943cd72dd7eebae8a4a (diff) |
changing ConfigCache to return interface{}
Diffstat (limited to 'system/db/cache.go')
-rw-r--r-- | system/db/cache.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/db/cache.go b/system/db/cache.go index 30ecf5a..0120147 100644 --- a/system/db/cache.go +++ b/system/db/cache.go @@ -11,7 +11,7 @@ import ( // CacheControl sets the default cache policy on static asset responses func CacheControl(next http.Handler) http.HandlerFunc { return http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - etag := ConfigCache("etag") + etag := ConfigCache("etag").(string) policy := fmt.Sprintf("max-age=%d, public", 60*60*24*30) res.Header().Add("ETag", etag) res.Header().Add("Cache-Control", policy) |