From d65f712ea3d8941f4b9145c0630c30c20af80d13 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Fri, 11 Nov 2011 17:22:21 -0500
Subject: [PATCH] Documentation. Add javadoc and source jars to the gbapi download.

---
 src/com/gitblit/wicket/GitBlitWebApp.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/com/gitblit/wicket/GitBlitWebApp.java b/src/com/gitblit/wicket/GitBlitWebApp.java
index 3edcf6a..301adb3 100644
--- a/src/com/gitblit/wicket/GitBlitWebApp.java
+++ b/src/com/gitblit/wicket/GitBlitWebApp.java
@@ -69,6 +69,11 @@
 			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");

--
Gitblit v1.9.1