You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some views (e.g. views generating already compressed file types like PDF, PNG, etc) it isn't worth trying to compress them. It would be useful to be able to exclude certain views from the middleware's automatic compression.
The text was updated successfully, but these errors were encountered:
I have an idea - was poking around Django's docs, and suddenly realized that Django's @csrf_exempt decorator serves the same purpose as what we want to do here: prevent a piece of middleware from running against a specific view. So I'll dig into that and maybe we can do it the same way.
For some views (e.g. views generating already compressed file types like PDF, PNG, etc) it isn't worth trying to compress them. It would be useful to be able to exclude certain views from the middleware's automatic compression.
The text was updated successfully, but these errors were encountered: