summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/db/cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/db/cache.go b/system/db/cache.go
index 55dd42a..fbb0fd5 100644
--- a/system/db/cache.go
+++ b/system/db/cache.go
@@ -16,7 +16,7 @@ func CacheControl(next http.Handler) http.HandlerFunc {
res.Header().Add("Cache-Control", "no-cache")
next.ServeHTTP(res, req)
} else {
- age := ConfigCache("cache_max_age").(int64)
+ age := int64(ConfigCache("cache_max_age").(float64))
etag := ConfigCache("etag").(string)
if age == 0 {
age = DefaultMaxAge