From 8fa04b6ba5b1687e504a4b984fdd0a3e9b8279d9 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 9 Jul 2011 23:54:19 -0400 Subject: add prevent_auto flag to cache control --- pyramid/config.py | 8 ++++---- 1 file 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 -- cgit v1.2.3