You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by jo...@apache.org on 2006/03/17 15:17:03 UTC
svn commit: r386640 - /lenya/trunk/src/webapp/lenya/lenya.xmap
Author: josias
Date: Fri Mar 17 06:16:56 2006
New Revision: 386640
URL: http://svn.apache.org/viewcvs?rev=386640&view=rev
Log:
enable browser-caching for static lenya images. this increases the performance e.g. of the sitetree widget and also reduces 'flickering' of the menu tabs which occurred in IE.
Modified:
lenya/trunk/src/webapp/lenya/lenya.xmap
Modified: lenya/trunk/src/webapp/lenya/lenya.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/lenya.xmap?rev=386640&r1=386639&r2=386640&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/lenya.xmap (original)
+++ lenya/trunk/src/webapp/lenya/lenya.xmap Fri Mar 17 06:16:56 2006
@@ -41,26 +41,6 @@
</map:select>
</map:match>
- <!-- matches lenya/**.jpg -->
- <map:match pattern="**.jpg">
- <map:read src="resources/{1}.jpg" mime-type="image/jpeg" />
- </map:match>
-
- <!-- matches lenya/**.gif -->
- <map:match pattern="**.gif">
- <map:read src="resources/{1}.gif" mime-type="image/gif" />
- </map:match>
-
- <!-- matches lenya/**.png -->
- <map:match pattern="**.png">
- <map:read src="resources/{1}.png" mime-type="image/png" />
- </map:match>
-
- <!-- matches lenya/**.ext -->
- <map:match pattern="images/**.*">
- <map:read src="resources/images/{1}.{2}" mime-type="image/{4}" />
- </map:match>
-
<map:match pattern="**.rng">
<map:generate src="resources/{1}.rng"/>
<map:transform src="xslt/resources/translate-rng-includes.xsl"/>
@@ -82,5 +62,31 @@
</map:select>
</map:match>
</map:pipeline>
+
+ <map:pipeline>
+ <!-- enable client side caching of resources -->
+ <map:parameter name="expires" value="access plus 2 hours"/>
+
+ <!-- matches lenya/**.jpg -->
+ <map:match pattern="**.jpg">
+ <map:read src="resources/{1}.jpg" mime-type="image/jpeg" />
+ </map:match>
+
+ <!-- matches lenya/**.gif -->
+ <map:match pattern="**.gif">
+ <map:read src="resources/{1}.gif" mime-type="image/gif" />
+ </map:match>
+
+ <!-- matches lenya/**.png -->
+ <map:match pattern="**.png">
+ <map:read src="resources/{1}.png" mime-type="image/png" />
+ </map:match>
+
+ <!-- matches lenya/**.ext -->
+ <map:match pattern="images/**.*">
+ <map:read src="resources/images/{1}.{2}" mime-type="image/{4}" />
+ </map:match>
+ </map:pipeline>
+
</map:pipelines>
</map:sitemap>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org