diff roundup/cgi/client.py @ 2988:f4023f1cc1d6

apply IE caching "fix" to automatically serve up all pages expired
author Richard Jones <richard@users.sourceforge.net>
date Fri, 03 Dec 2004 22:19:41 +0000
parents 1535b4b5d746
children 4ef775d2c8d1 b3f9dee6aa76
line wrap: on
line diff
--- a/roundup/cgi/client.py	Fri Dec 03 22:11:06 2004 +0000
+++ b/roundup/cgi/client.py	Fri Dec 03 22:19:41 2004 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.210 2004-11-24 05:16:15 a1s Exp $
+# $Id: client.py,v 1.211 2004-12-03 22:19:41 richard Exp $
 
 """WWW request handler (also used in the stand-alone server).
 """
@@ -247,10 +247,13 @@
             # pages with messages added expire right now
             # simple views may be cached for a small amount of time
             # TODO? make page expire time configurable
-            if self.error_message or self.ok_message:
-                date = time.time() - 1
-            else:
-                date = time.time() + 5
+            # <rj> always expire pages, as IE just doesn't seem to do the
+            # right thing here :(
+            date = time.time() - 1
+            #if self.error_message or self.ok_message:
+            #    date = time.time() - 1
+            #else:
+            #    date = time.time() + 5
             self.additional_headers['Expires'] = rfc822.formatdate(date)
 
             # render the content

Roundup Issue Tracker: http://roundup-tracker.org/