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.
Please login to continue.