mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Fixed doc indentation in previous commit.
This commit is contained in:
parent
71a03e01aa
commit
81a5e35c8d
@ -1054,10 +1054,10 @@ produces different content based on some difference in request headers -- such
|
|||||||
as a cookie, or a language, or a user-agent -- you'll need to use the ``Vary``
|
as a cookie, or a language, or a user-agent -- you'll need to use the ``Vary``
|
||||||
header to tell caching mechanisms that the page output depends on those things.
|
header to tell caching mechanisms that the page output depends on those things.
|
||||||
|
|
||||||
.. versionchanged:: 1.7
|
.. versionchanged:: 1.7
|
||||||
|
|
||||||
Cache keys use the request's fully-qualified URL rather than path
|
Cache keys use the request's fully-qualified URL rather than just the path
|
||||||
and query string.
|
and query string.
|
||||||
|
|
||||||
To do this in Django, use the convenient
|
To do this in Django, use the convenient
|
||||||
:func:`django.views.decorators.vary.vary_on_headers` view decorator, like so::
|
:func:`django.views.decorators.vary.vary_on_headers` view decorator, like so::
|
||||||
|
Loading…
x
Reference in New Issue
Block a user