summaryrefslogtreecommitdiffstats
path: root/routers/routes/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/routes/routes.go')
-rw-r--r--routers/routes/routes.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index 8dfcdb9c9b..0db0af43f0 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -139,14 +139,14 @@ func NewMacaron() *macaron.Macaron {
m.Use(public.Custom(
&public.Options{
SkipLogging: setting.DisableRouterLog,
- ExpiresAfter: time.Hour * 6,
+ ExpiresAfter: setting.StaticCacheTime,
},
))
m.Use(public.Static(
&public.Options{
Directory: path.Join(setting.StaticRootPath, "public"),
SkipLogging: setting.DisableRouterLog,
- ExpiresAfter: time.Hour * 6,
+ ExpiresAfter: setting.StaticCacheTime,
},
))
m.Use(public.StaticHandler(
@@ -154,7 +154,7 @@ func NewMacaron() *macaron.Macaron {
&public.Options{
Prefix: "avatars",
SkipLogging: setting.DisableRouterLog,
- ExpiresAfter: time.Hour * 6,
+ ExpiresAfter: setting.StaticCacheTime,
},
))
m.Use(public.StaticHandler(
@@ -162,7 +162,7 @@ func NewMacaron() *macaron.Macaron {
&public.Options{
Prefix: "repo-avatars",
SkipLogging: setting.DisableRouterLog,
- ExpiresAfter: time.Hour * 6,
+ ExpiresAfter: setting.StaticCacheTime,
},
))