Ticket #13008: 13008.diff
File 13008.diff, 507 bytes (added by , 12 years ago) |
---|
-
django/utils/cache.py
diff --git a/django/utils/cache.py b/django/utils/cache.py index 8b81a2f..2383521 100644
a b def add_never_cache_headers(response): 126 126 """ 127 127 Adds headers to a response to indicate that a page should never be cached. 128 128 """ 129 patch_cache_control(response, no_cache=True) 130 patch_cache_control(response, no_store=True) 129 131 patch_response_headers(response, cache_timeout=-1) 130 132 131 133 def patch_vary_headers(response, newheaders):