mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.6.x] Fixed #23762 -- clarified CACHE_MIDDLEWARE_ANONYMOUS_ONLY deprecation in docs
Backport of e83aba0e2cce16cd1b32d1c172239a4e20867e95 from master
This commit is contained in:
parent
d686c9b631
commit
778ccee9bc
@ -1042,10 +1042,11 @@ If necessary, you can temporarily disable auto-escaping with
|
|||||||
``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting
|
``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
``CacheMiddleware`` used to provide a way to cache requests only if they
|
``CacheMiddleware`` and ``UpdateCacheMiddleware`` used to provide a way to
|
||||||
weren't made by a logged-in user. This mechanism was largely ineffective
|
cache requests only if they weren't made by a logged-in user. This mechanism
|
||||||
because the middleware correctly takes into account the ``Vary: Cookie`` HTTP
|
was largely ineffective because the middleware correctly takes into account the
|
||||||
header, and this header is being set on a variety of occasions, such as:
|
``Vary: Cookie`` HTTP header, and this header is being set on a variety of
|
||||||
|
occasions, such as:
|
||||||
|
|
||||||
* accessing the session, or
|
* accessing the session, or
|
||||||
* using CSRF protection, which is turned on by default, or
|
* using CSRF protection, which is turned on by default, or
|
||||||
|
Loading…
x
Reference in New Issue
Block a user