Commits

Stephen McKamey committed 57e9521

updating to DUEL 0.5.1

  • Participants
  • Parent commits ff9ea9e

Comments (0)

Files changed (6)

File duel-mvc-archetype/pom.xml

 
 	<groupId>org.duelengine</groupId>
 	<artifactId>duel-mvc-archetype</artifactId>
-	<version>0.2.0</version>
+	<version>0.2.1</version>
 	<packaging>maven-archetype</packaging>
 
 	<name>DUEL MVC</name>

File duel-mvc-archetype/src/main/resources/archetype-resources/pom.xml

 	<properties>
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
-		<duel.version>0.5.0</duel.version>
+		<duel.version>0.5.1</duel.version>
 		<merge.version>0.2.0</merge.version>
 		<jackson.version>1.8.2</jackson.version>
 		<guice.version>3.0</guice.version>

File duel-mvc-archetype/src/main/resources/archetype-resources/src/main/java/AppRoot.java

 					"/js/.*",
 					"/images/.*"
 				).with(defaultServlet);
+
+				// this sets the cache control headers to never expire
+				NeverExpireFilter neverExpire = new NeverExpireFilter();
+
+				filterRegex(
+					"/cdn/.*"
+				).through(neverExpire);
 			}
 
 			/**

File mvcapp/pom.xml

 
 	<groupId>com.example</groupId>
 	<artifactId>mvcapp</artifactId>
-	<version>0.2.0</version>
+	<version>0.2.1</version>
 	<packaging>war</packaging>
 
 	<name>Example MVC App</name>
 	<properties>
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
-		<duel.version>0.5.0</duel.version>
+		<duel.version>0.5.1</duel.version>
 		<merge.version>0.2.0</merge.version>
 		<jackson.version>1.8.2</jackson.version>
 		<guice.version>3.0</guice.version>

File mvcapp/src/main/java/com/example/mvcapp/AppRoot.java

 					"/js/.*",
 					"/images/.*"
 				).with(defaultServlet);
+
+				// this sets the cache control headers to never expire
+				NeverExpireFilter neverExpire = new NeverExpireFilter();
+
+				filterRegex(
+					"/cdn/.*"
+				).through(neverExpire);
 			}
 
 			/**
 	mvn archetype:generate \
 		-DarchetypeGroupId=org.duelengine \
 		-DarchetypeArtifactId=duel-mvc-archetype \
-		-DarchetypeVersion=0.2.0
+		-DarchetypeVersion=0.2.1
 
 	# build your project
 	# NOTE: replace "mvcapp" with your chosen artifact name