summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbbangert <bbangert@localhost>2007-06-28 18:13:11 +0000
committerbbangert <bbangert@localhost>2007-06-28 18:13:11 +0000
commit50d44d8063ccf021eb5a670fbe1e196ebff9af69 (patch)
tree39bb107a832097495d12cf87eb26809861083899
parent00cf5d11da90b19180e7b680341182cab12ae867 (diff)
downloadpaste-git-50d44d8063ccf021eb5a670fbe1e196ebff9af69.tar.gz
By default, don't cache Response objects.
-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: