diff options
| author | bbangert <devnull@localhost> | 2007-06-28 18:13:11 +0000 |
|---|---|---|
| committer | bbangert <devnull@localhost> | 2007-06-28 18:13:11 +0000 |
| commit | ed38317a8b30c7a5c340a98957105d5cb36cc1a8 (patch) | |
| tree | 39bb107a832097495d12cf87eb26809861083899 /paste | |
| parent | a4c4484fd47adf05b2b467bc16bfa00a41381e61 (diff) | |
| download | paste-ed38317a8b30c7a5c340a98957105d5cb36cc1a8.tar.gz | |
By default, don't cache Response objects.
Diffstat (limited to 'paste')
| -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: |
