cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jer...@apache.org
Subject svn commit: r694408 - /cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/sitemap.xmap
Date Thu, 11 Sep 2008 18:40:46 GMT
Author: jeremy
Date: Thu Sep 11 11:40:45 2008
New Revision: 694408

URL: http://svn.apache.org/viewvc?rev=694408&view=rev
Log:
adding 1 week expiry header to block resources, fixing some indentation

Modified:
    cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/sitemap.xmap

Modified: cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/sitemap.xmap?rev=694408&r1=694407&r2=694408&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/sitemap.xmap (original)
+++ cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/sitemap.xmap Thu Sep 11 11:40:45 2008
@@ -595,12 +595,14 @@
           <map:read src="resources/{1}/{2}"/>
         </map:when>
         <!-- For Cocoon development, read directly from source directories
-          <map:when test="../../src/blocks/{1}/resources/org/apache/cocoon/{1}/resources/{2}">
-              <map:read src="../../src/blocks/{1}/resources/org/apache/cocoon/{1}/resources/{2}"/>
-            </map:when>
+        <map:when test="../../src/blocks/{1}/resources/org/apache/cocoon/{1}/resources/{2}">
+          <map:read src="../../src/blocks/{1}/resources/org/apache/cocoon/{1}/resources/{2}"/>
+        </map:when>
         -->
         <map:otherwise>
-          <map:read src="resource://org/apache/cocoon/{1}/resources/{2}"/>
+          <map:read src="resource://org/apache/cocoon/{1}/resources/{2}">
+            <map:parameter name="expires" value="604800000"/><!-- expires in one
week -->
+          </map:read>
         </map:otherwise>
       </map:select>
     </map:match>
@@ -611,9 +613,9 @@
           <map:mount src="system/{1}/sitemap.xmap" uri-prefix="_cocoon/system/"/>
         </map:when>
         <!-- For Cocoon development, read directly from source directories
-          <map:when test="../../src/blocks/{1}/resources/org/apache/cocoon/{1}/system/sitemap.xmap">
-              <map:mount src="../../src/blocks/{1}/resources/org/apache/cocoon/{1}/system/sitemap.xmap"
uri-prefix="_cocoon/system/{1}/"/>
-          </map:when>
+        <map:when test="../../src/blocks/{1}/resources/org/apache/cocoon/{1}/system/sitemap.xmap">
+          <map:mount src="../../src/blocks/{1}/resources/org/apache/cocoon/{1}/system/sitemap.xmap"
uri-prefix="_cocoon/system/{1}/"/>
+        </map:when>
         -->
         <map:otherwise>
           <map:mount src="resource://org/apache/cocoon/{1}/system/sitemap.xmap" uri-prefix="_cocoon/system/{1}/"/>



Mime
View raw message