Opened 5 years ago
Last modified 18 months ago
#31949 closed New feature
ASGI - Cache Middleware and some view decorators broken — at Initial Version
Description ¶
The cache middleware is broken because it inherits from MiddlewareMixin and override the init method.
TypeError: object HttpResponse can't be used in 'await' expression
On both middlewares the self._async_check() is missing in init.
Also the most view decorators are broken on async views, because the dont use async/await.
For example:
cache_control xframe_options_deny vary_on_cookie
Note:
See TracTickets
for help on using tickets.