You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2008/05/09 05:46:32 UTC

svn commit: r654675 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java

Author: joerg
Date: Thu May  8 20:46:32 2008
New Revision: 654675

URL: http://svn.apache.org/viewvc?rev=654675&view=rev
Log:
Restore changes of revision 155087: Remove Last-Modified header initialization: this is done in the environment by request from AbstractProcessingPipeline. (http://marc.info/?l=xml-cocoon-dev&m=120477652124530&w=4)

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java?rev=654675&r1=654674&r2=654675&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java Thu May  8 20:46:32 2008
@@ -159,7 +159,7 @@
     }
 
     /**
-     * Setup the response headers: Accept-Ranges, Expires, Last-Modified
+     * Setup the response headers: Accept-Ranges, Expires
      */
     protected void setupHeaders() {
         // Tell the client whether we support byte range requests or not
@@ -174,11 +174,6 @@
         } else if (expires == 0) {
             response.setDateHeader("Expires", 0);
         }
-
-        long lastModified = getLastModified(); 
-        if (lastModified > 0) { 
-            response.setDateHeader("Last-Modified", lastModified); 
-        }
     }
 
     /**