From 85079402ffa78dad8881eb0d48a32eb3eee8b919 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 7 Nov 2011 21:19:13 -0500 Subject: Set resource cache duration to 90 days instead of 120 mins (issue 17) --- src/com/gitblit/wicket/GitBlitWebApp.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/com/gitblit') diff --git a/src/com/gitblit/wicket/GitBlitWebApp.java b/src/com/gitblit/wicket/GitBlitWebApp.java index 3edcf6a7..301adb32 100644 --- a/src/com/gitblit/wicket/GitBlitWebApp.java +++ b/src/com/gitblit/wicket/GitBlitWebApp.java @@ -69,6 +69,11 @@ public class GitBlitWebApp extends WebApplication { getRequestCycleSettings().setGatherExtendedBrowserInfo(true); } + // configure the resource cache duration to 90 days for deployment + if (!GitBlit.isDebugMode()) { + getResourceSettings().setDefaultCacheDuration(90 * 86400); + } + // setup the standard gitweb-ish urls mount("/summary", SummaryPage.class, "r"); mount("/log", LogPage.class, "r", "h"); -- cgit v1.2.3