diff roundup/cgi/client.py @ 1579:07a6b8587bc2

removed Pragma: no-cache... ...so that Mozilla and its ilk only load pages once per request!
author Richard Jones <richard@users.sourceforge.net>
date Thu, 10 Apr 2003 04:32:46 +0000
parents b975da59cd11
children caae7d8934dc
line wrap: on
line diff
--- a/roundup/cgi/client.py	Tue Apr 08 06:41:48 2003 +0000
+++ b/roundup/cgi/client.py	Thu Apr 10 04:32:46 2003 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.111 2003-03-26 06:46:17 richard Exp $
+# $Id: client.py,v 1.112 2003-04-10 04:32:46 richard Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -224,11 +224,12 @@
             # possibly handle a form submit action (may change self.classname
             # and self.template, and may also append error/ok_messages)
             self.handle_action()
+
             # now render the page
-
             # we don't want clients caching our dynamic pages
             self.additional_headers['Cache-Control'] = 'no-cache'
-            self.additional_headers['Pragma'] = 'no-cache'
+# Pragma: no-cache makes Mozilla and its ilk double-load all pages!!
+#            self.additional_headers['Pragma'] = 'no-cache'
 
             # expire this page 5 seconds from now
             date = rfc822.formatdate(time.time() + 5)

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