From c9ba3450bd03c9c8822dcf5570b0fcf5d08d9467 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 20 Dec 2016 08:29:12 -0500 Subject: [PATCH] [1.8.x] Fixed #27616 -- Fixed incorrect vary_on_headers() example. Backport of 5e239ae907291d07a3fcf9329f83c27fa6d72981 from master --- docs/ref/request-response.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 30b2346a7d..6f6502b9e2 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -341,7 +341,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 `, you should decorate the view with - :func:`vary_on_headers('HTTP_X_REQUESTED_WITH') + :func:`vary_on_headers('X-Requested-With') ` so that the responses are properly cached.