diff options
| author | Chris McDonough <chrism@plope.com> | 2011-07-09 23:54:19 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-07-09 23:54:19 -0400 |
| commit | 8fa04b6ba5b1687e504a4b984fdd0a3e9b8279d9 (patch) | |
| tree | 775086687b7ad42dd9fd4de493750bd03c9fe1a9 | |
| parent | 99d99019e75a7190a0154ec12845e67fc99aafb9 (diff) | |
| download | pyramid-8fa04b6ba5b1687e504a4b984fdd0a3e9b8279d9.tar.gz pyramid-8fa04b6ba5b1687e504a4b984fdd0a3e9b8279d9.tar.bz2 pyramid-8fa04b6ba5b1687e504a4b984fdd0a3e9b8279d9.zip | |
add prevent_auto flag to cache control
| -rw-r--r-- | pyramid/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyramid/config.py b/pyramid/config.py index 53daf3b56..607dbad38 100644 --- a/pyramid/config.py +++ b/pyramid/config.py @@ -1141,10 +1141,10 @@ class Configurator(object): ``(None, {'public':True})``. If you wish to prevent a view that uses ``http_cache`` in its - configuration from having its response changed by ``http_cache`` , - set ``response.cache_control.prevent_auto = True`` before returning - the response. This effectively disables any HTTP caching done by - ``http_cache`` for that response. + configuration from having its caching response headers changed by + this machinery, set ``response.cache_control.prevent_auto = True`` + before returning the response from the view. This effectively + disables any HTTP caching done by ``http_cache`` for that response. wrapper |
