You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by th...@apache.org on 2005/10/21 16:11:44 UTC

svn commit: r327193 - in /lenya/branches/BRANCH_1_2_X/src: targets/webapp-build.xml webapp/lenya/usecase.xmap

Author: thorsten
Date: Fri Oct 21 07:11:37 2005
New Revision: 327193

URL: http://svn.apache.org/viewcvs?rev=327193&view=rev
Log:
Bugfix Bug 37193. Submitted by Josias Thoeny. Fixes that Xopus caches document and thus shows an old version. Thx Josias

Modified:
    lenya/branches/BRANCH_1_2_X/src/targets/webapp-build.xml
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecase.xmap

Modified: lenya/branches/BRANCH_1_2_X/src/targets/webapp-build.xml
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/targets/webapp-build.xml?rev=327193&r1=327192&r2=327193&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/targets/webapp-build.xml (original)
+++ lenya/branches/BRANCH_1_2_X/src/targets/webapp-build.xml Fri Oct 21 07:11:37 2005
@@ -215,14 +215,10 @@
 
     <!-- Copy endorsed libraries -->
     <copy todir="${tomcat.endorsed.dir}">
-      <fileset dir="${build.webapp}/WEB-INF/lib/">
-        <include name="xercesImpl-*.jar"/>
-        <include name="xalan-*.jar"/>
-        <include name="jakarta-regexp-*.jar"/>
-        <include name="jakarta-bcel-*.jar"/>
+      <fileset dir="${build.webapp}/WEB-INF/lib/endorsed">
+        <include name="*.jar"/>
       </fileset>
     </copy>
-    <copy file="${build.webapp}/WEB-INF/lib/xml-apis.jar" todir="${tomcat.endorsed.dir}"/>
   </target>
 
   <!-- ============================================================ -->

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecase.xmap
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecase.xmap?rev=327193&r1=327192&r2=327193&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecase.xmap (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecase.xmap Fri Oct 21 07:11:37 2005
@@ -404,6 +404,11 @@
                   <map:serialize type="xml"/>
                 </map:when>
                 <map:otherwise> <!-- GET: Open -->
+                  <map:act type="set-header">
+                    <!-- prevent caching in the browser -->
+                    <map:parameter name="Cache-Control" value="pre-check=0" />
+                    <map:parameter name="Expires" value="-1" />
+                  </map:act>
                   <map:generate src="pubs/{1}/content/{2}/{page-envelope:document-path}"/>
                   <map:serialize type="xml"/>
                 </map:otherwise>



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