You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ga...@apache.org on 2006/09/06 17:33:09 UTC

svn commit: r440734 - /incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/util/ModDateHeaderUtil.java

Author: gangolli
Date: Wed Sep  6 08:33:08 2006
New Revision: 440734

URL: http://svn.apache.org/viewvc?view=rev&rev=440734
Log:
Added spec reference comments.

Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/util/ModDateHeaderUtil.java

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/util/ModDateHeaderUtil.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/util/ModDateHeaderUtil.java?view=diff&rev=440734&r1=440733&r2=440734
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/util/ModDateHeaderUtil.java (original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/util/ModDateHeaderUtil.java Wed Sep  6 08:33:08 2006
@@ -78,6 +78,9 @@
     public static void setLastModifiedHeader(HttpServletResponse response, long lastModifiedTimeMillis) {
         response.setDateHeader("Last-Modified", lastModifiedTimeMillis);
         // Force clients to revalidate each time
+        // See RFC 2616 (HTTP 1.1 spec) secs 14.21, 13.2.1
         response.setDateHeader("Expires", 0);
+        // We may also want this (See 13.2.1 and 14.9.4)
+        // response.setHeader("Cache-Control","must-revalidate");
     }
 }