diff options
| author | Tim Graham <timograham@gmail.com> | 2016-12-20 08:29:12 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-12-20 08:30:18 -0500 |
| commit | 5e239ae907291d07a3fcf9329f83c27fa6d72981 (patch) | |
| tree | 6e42929d0914ef3788d057a85929e452339614bd /docs/ref/request-response.txt | |
| parent | e8d8fb3295ee6d34fc8430fbf264b997335db390 (diff) | |
Fixed #27616 -- Fixed incorrect vary_on_headers() example.
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 61ed3128e1..b3d0f76a7e 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -359,7 +359,7 @@ Methods 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 <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 properly cached. |
