comparison roundup/cgi/client.py @ 2989:1836d2361553 maint-0.7

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Fri, 03 Dec 2004 22:21:31 +0000
parents e8d22f8ff35a
children c2f9cd78f12f
comparison
equal deleted inserted replaced
2987:bf6f79ecfe78 2989:1836d2361553
1 # $Id: client.py,v 1.176.2.8 2004-11-21 21:52:34 richard Exp $ 1 # $Id: client.py,v 1.176.2.9 2004-12-03 22:21:31 richard Exp $
2 2
3 """WWW request handler (also used in the stand-alone server). 3 """WWW request handler (also used in the stand-alone server).
4 """ 4 """
5 __docformat__ = 'restructuredtext' 5 __docformat__ = 'restructuredtext'
6 6
206 self.additional_headers['Cache-Control'] = 'no-cache' 206 self.additional_headers['Cache-Control'] = 'no-cache'
207 # Pragma: no-cache makes Mozilla and its ilk double-load all pages!! 207 # Pragma: no-cache makes Mozilla and its ilk double-load all pages!!
208 # self.additional_headers['Pragma'] = 'no-cache' 208 # self.additional_headers['Pragma'] = 'no-cache'
209 209
210 # expire this page 5 seconds from now 210 # expire this page 5 seconds from now
211 date = rfc822.formatdate(time.time() + 5) 211 # <rj> changed to "fix" IE caching issue - always expire all
212 # pages
213 date = rfc822.formatdate(time.time() - 1)
212 self.additional_headers['Expires'] = date 214 self.additional_headers['Expires'] = date
213 215
214 # render the content 216 # render the content
215 self.write(self.renderContext()) 217 self.write(self.renderContext())
216 218

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