1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #30765 -- Made cache_page decorator take precedence over max-age Cache-Control directive.

This commit is contained in:
Flavio Curella
2019-09-26 11:41:38 -07:00
committed by Mariusz Felisiak
parent 1e0dcd6c8b
commit d08d4f464a
5 changed files with 50 additions and 10 deletions

View File

@@ -430,6 +430,10 @@ Miscellaneous
used with :setting:`DEFAULT_EXCEPTION_REPORTER_FILTER` needs to inherit from
:class:`django.views.debug.SafeExceptionReporterFilter`.
* The cache timeout set by :func:`~django.views.decorators.cache.cache_page`
decorator now takes precedence over the ``max-age`` directive from the
``Cache-Control`` header.
.. _deprecated-features-3.1:
Features deprecated in 3.1