[1.8.x] Fixed #27616 -- Fixed incorrect vary_on_headers() example.

Backport of 5e239ae907 from master
This commit is contained in:
Tim Graham 2016-12-20 08:29:12 -05:00
parent 01b3dc2232
commit c9ba3450bd
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,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.