Ticket #13008: 13008.diff

File 13008.diff, 507 bytes (added by Chris Beaven, 7 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): 
    126126    """
    127127    Adds headers to a response to indicate that a page should never be cached.
    128128    """
     129    patch_cache_control(response, no_cache=True)
     130    patch_cache_control(response, no_store=True)
    129131    patch_response_headers(response, cache_timeout=-1)
    130132
    131133def patch_vary_headers(response, newheaders):
Back to Top