Ticket #27616: request-response.diff

File request-response.diff, 625 bytes (added by David Houlder, 7 years ago)
  • docs/ref/request-response.txt

    diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
    index 61ed312..b3d0f76 100644
    a b Methods  
    359359    If a response varies on whether or not it's requested via AJAX and you are
    360360    using some form of caching like Django's :mod:`cache middleware
    361361    <django.middleware.cache>`, you should decorate the view with
    362     :func:`vary_on_headers('HTTP_X_REQUESTED_WITH')
     362    :func:`vary_on_headers('X-Requested-With')
    363363    <django.views.decorators.vary.vary_on_headers>` so that the responses are
    364364    properly cached.
    365365
Back to Top