You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/11/15 02:10:06 UTC

svn commit: r595171 - /lenya/trunk/src/pubs/default/sitemap.xmap

Author: andreas
Date: Wed Nov 14 17:10:05 2007
New Revision: 595171

URL: http://svn.apache.org/viewvc?rev=595171&view=rev
Log:
Wrap setting of expiration header in language-exists action to avoid an exception

Modified:
    lenya/trunk/src/pubs/default/sitemap.xmap

Modified: lenya/trunk/src/pubs/default/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/sitemap.xmap?rev=595171&r1=595170&r2=595171&view=diff
==============================================================================
--- lenya/trunk/src/pubs/default/sitemap.xmap (original)
+++ lenya/trunk/src/pubs/default/sitemap.xmap Wed Nov 14 17:10:05 2007
@@ -348,8 +348,10 @@
           <!-- for live area: -->
           <map:when test="live">
             <!-- set cache expiration header according to resource type configuration (<expires/>) -->
-            <map:act type="set-header">
-              <map:parameter name="Expires" value="{date-iso8601-rfc822:{doc-info:{page-envelope:publication-id}:{page-envelope:area}:{page-envelope:document-uuid}:{page-envelope:document-language}:expires}}"/>
+            <map:act type="language-exists">
+              <map:act type="set-header">
+                <map:parameter name="Expires" value="{date-iso8601-rfc822:{doc-info:{page-envelope:publication-id}:{page-envelope:area}:{page-envelope:document-uuid}:{page-envelope:document-language}:expires}}"/>
+              </map:act>
             </map:act>
           </map:when>
           <!-- for other areas -->



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org