Kaydet (Commit) 5e239ae9 authored tarafından Tim Graham's avatar Tim Graham

Fixed #27616 -- Fixed incorrect vary_on_headers() example.

üst e8d8fb32
...@@ -359,7 +359,7 @@ Methods ...@@ -359,7 +359,7 @@ Methods
If a response varies on whether or not it's requested via AJAX and you are If a response varies on whether or not it's requested via AJAX and you are
using some form of caching like Django's :mod:`cache middleware using some form of caching like Django's :mod:`cache middleware
<django.middleware.cache>`, you should decorate the view with <django.middleware.cache>`, you should decorate the view with
:func:`vary_on_headers('HTTP_X_REQUESTED_WITH') :func:`vary_on_headers('X-Requested-With')
<django.views.decorators.vary.vary_on_headers>` so that the responses are <django.views.decorators.vary.vary_on_headers>` so that the responses are
properly cached. properly cached.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment