summaryrefslogtreecommitdiff
path: root/paste/wsgiwrappers.py
diff options
context:
space:
mode:
authorbbangert <devnull@localhost>2007-06-28 18:13:11 +0000
committerbbangert <devnull@localhost>2007-06-28 18:13:11 +0000
commited38317a8b30c7a5c340a98957105d5cb36cc1a8 (patch)
tree39bb107a832097495d12cf87eb26809861083899 /paste/wsgiwrappers.py
parenta4c4484fd47adf05b2b467bc16bfa00a41381e61 (diff)
downloadpaste-ed38317a8b30c7a5c340a98957105d5cb36cc1a8.tar.gz
By default, don't cache Response objects.
Diffstat (limited to 'paste/wsgiwrappers.py')
-rw-r--r--paste/wsgiwrappers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/paste/wsgiwrappers.py b/paste/wsgiwrappers.py
index e209359..e27fd18 100644
--- a/paste/wsgiwrappers.py
+++ b/paste/wsgiwrappers.py
@@ -106,7 +106,10 @@ class WSGIRequest(object):
self.environ = environ
# This isn't "state" really, since the object is derivative:
self.headers = EnvironHeaders(environ)
-
+
+ # Default caching of requests using Response to not cache
+ self.headers['Cache-Control'] = 'no-cache'
+
defaults = self.defaults._current_obj()
self.charset = defaults.get('charset')
if self.charset: