diff options
author | bbangert <bbangert@localhost> | 2007-06-28 18:13:11 +0000 |
---|---|---|
committer | bbangert <bbangert@localhost> | 2007-06-28 18:13:11 +0000 |
commit | 50d44d8063ccf021eb5a670fbe1e196ebff9af69 (patch) | |
tree | 39bb107a832097495d12cf87eb26809861083899 | |
parent | 00cf5d11da90b19180e7b680341182cab12ae867 (diff) | |
download | paste-git-50d44d8063ccf021eb5a670fbe1e196ebff9af69.tar.gz |
By default, don't cache Response objects.
-rw-r--r-- | paste/wsgiwrappers.py | 5 |
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: |