roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gango...@apache.org
Subject svn commit: r440734 - /incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/util/ModDateHeaderUtil.java
Date Wed, 06 Sep 2006 15:33:09 GMT
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");
     }
 }



Mime
View raw message