Author: toad
Date: 2006-12-01 19:25:58 +0000 (Fri, 01 Dec 2006)
New Revision: 11179

Modified:
   trunk/freenet/src/freenet/clients/http/ToadletContextImpl.java
Log:
Should include date if we include last-modified.

Modified: trunk/freenet/src/freenet/clients/http/ToadletContextImpl.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/ToadletContextImpl.java      
2006-12-01 19:25:19 UTC (rev 11178)
+++ trunk/freenet/src/freenet/clients/http/ToadletContextImpl.java      
2006-12-01 19:25:58 UTC (rev 11179)
@@ -117,7 +117,10 @@
                // Also this may fix a wierd bug...
                // All keys are lower-case
                mvt.put("expires", "Thu, 01 Jan 1970 00:00:00 GMT");
-               mvt.put("last-modified", 
makeHTTPDate(System.currentTimeMillis()-1000));
+               // Sent now, expires now.
+               String time = makeHTTPDate(System.currentTimeMillis());
+               mvt.put("last-modified", time);
+               mvt.put("date", time);
                mvt.put("pragma", "no-cache");
                mvt.put("cache-control", "max-age=0, must-revalidate, no-cache, 
no-store, post-check=0, pre-check=0");
                if(disconnect)


Reply via email to