summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b401348)
raw | patch | inline | side by side (parent: b401348)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 12 Sep 2002 07:00:41 +0000 (07:00 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 12 Sep 2002 07:00:41 +0000 (07:00 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1152 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/client.py | patch | blob | history |
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index d265bd404d395d6f8e0fe35ee8b155c25e10cf40..481384c36e1c4835c5a2277863998daf84b32ebf 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.30 2002-09-12 06:05:34 richard Exp $
+# $Id: client.py,v 1.31 2002-09-12 07:00:41 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
# 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'
+ self.additional_headers['Expires'] = 'Thu, 1 Jan 1970 00:00:00 GMT'
+
if self.form.has_key(':contentonly'):
# just the content
self.write(self.content())
headers = {'Content-Type':'text/html'}
if response is None:
response = self.response_code
+
+ # update with additional info
headers.update(self.additional_headers)
+
if not headers.has_key('Content-Type'):
headers['Content-Type'] = 'text/html'
self.request.send_response(response)