Skip to content

Commit d1d83cd

Browse files
author
Richard Jones
committed
removed Pragma: no-cache...
...so that Mozilla and its ilk only load pages once per request!
1 parent 4a17002 commit d1d83cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

roundup/cgi/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.111 2003-03-26 06:46:17 richard Exp $
1+
# $Id: client.py,v 1.112 2003-04-10 04:32:46 richard Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -224,11 +224,12 @@ def inner_main(self):
224224
# possibly handle a form submit action (may change self.classname
225225
# and self.template, and may also append error/ok_messages)
226226
self.handle_action()
227-
# now render the page
228227

228+
# now render the page
229229
# we don't want clients caching our dynamic pages
230230
self.additional_headers['Cache-Control'] = 'no-cache'
231-
self.additional_headers['Pragma'] = 'no-cache'
231+
# Pragma: no-cache makes Mozilla and its ilk double-load all pages!!
232+
# self.additional_headers['Pragma'] = 'no-cache'
232233

233234
# expire this page 5 seconds from now
234235
date = rfc822.formatdate(time.time() + 5)

0 commit comments

Comments
 (0)