mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #31949 -- Made make_middleware_decorator to work with async functions.
This commit is contained in:
parent
059cb0dbc9
commit
74f7deec9e
8 changed files with 214 additions and 11 deletions
|
@ -105,6 +105,10 @@ compression on a per-view basis.
|
|||
It sets the ``Vary`` header accordingly, so that caches will base their
|
||||
storage on the ``Accept-Encoding`` header.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
Support for wrapping asynchronous view functions was added.
|
||||
|
||||
.. module:: django.views.decorators.vary
|
||||
|
||||
Vary headers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue