summaryrefslogtreecommitdiff
path: root/system/admin/cache.go
diff options
context:
space:
mode:
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)