mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #13008 -- Added more Cache-Control headers to never_cache() decorator.
This commit is contained in:
committed by
Tim Graham
parent
82162b4499
commit
4a438e400b
@@ -134,6 +134,7 @@ def add_never_cache_headers(response):
|
||||
Adds headers to a response to indicate that a page should never be cached.
|
||||
"""
|
||||
patch_response_headers(response, cache_timeout=-1)
|
||||
patch_cache_control(response, no_cache=True, no_store=True, must_revalidate=True)
|
||||
|
||||
|
||||
def patch_vary_headers(response, newheaders):
|
||||
|
||||
Reference in New Issue
Block a user