summaryrefslogtreecommitdiff
path: root/system/admin/cache.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-09 23:45:59 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-09 23:45:59 -0700
commit8ada2f203837d106932ba12fd2d7ca0af6e580e5 (patch)
tree04fad516b5b28a88bba420c5fa3eaf206f12eff5 /system/admin/cache.go
parent72c812677caec723dc9e55679b9bca2f3d599b47 (diff)
adding static file server, new implementation
Diffstat (limited to 'system/admin/cache.go')
-rw-r--r--system/admin/cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/cache.go b/system/admin/cache.go
index 0de45af..2abdb26 100644
--- a/system/admin/cache.go
+++ b/system/admin/cache.go
@@ -9,7 +9,7 @@ import (
)
// CacheControl sets the default cache policy on static asset responses
-func CacheControl(next http.HandlerFunc) http.HandlerFunc {
+func CacheControl(next http.Handler) http.Handler {
return http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
etag := db.ConfigCache("etag")
policy := fmt.Sprintf("max-age=%d, public, must-revalidate, proxy-revalidate", 60*60*24*30)