never_cache(view_func)
[source]
This decorator 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.9:
Before Django 1.9, Cache-Control: max-age=0
was sent. This didn’t reliably prevent caching in all browsers.
Please login to continue.