summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/GitBlitWebApp.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/gitblit/wicket/GitBlitWebApp.java')
-rw-r--r--src/com/gitblit/wicket/GitBlitWebApp.java5
1 files changed, 5 insertions, 0 deletions
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");