diff options
Diffstat (limited to 'modules/httpcache/httpcache.go')
-rw-r--r-- | modules/httpcache/httpcache.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/httpcache/httpcache.go b/modules/httpcache/httpcache.go index 35d4e6dfd8..11b63148d9 100644 --- a/modules/httpcache/httpcache.go +++ b/modules/httpcache/httpcache.go @@ -18,7 +18,7 @@ import ( // AddCacheControlToHeader adds suitable cache-control headers to response func AddCacheControlToHeader(h http.Header, d time.Duration) { - if setting.IsProd() { + if setting.IsProd { h.Set("Cache-Control", "private, max-age="+strconv.Itoa(int(d.Seconds()))) } else { h.Set("Cache-Control", "no-store") |