diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index dc347ab4f7..325c8412d9 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -366,7 +366,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.