utils.cache.add_never_cache_headers()

add_never_cache_headers(response) [source]

Adds a Cache-Control: max-age=0, no-cache, no-store, must-revalidate header to a response to indicate that a page should never be cached.

Changed in Django 1.8.8:

In older versions, Cache-Control: max-age=0 was sent. This didn’t reliably prevent caching in all browsers.

doc_Django
2016-10-09 18:40:20
Comments
Leave a Comment

Please login to continue.