jazzband / django-revproxy

Reverse Proxy view that supports all HTTP methods, Diazo transformations and Single Sign-On.
Mozilla Public License 2.0
305 stars 118 forks source link

Add ability to not stream big response or at least override MIN_STREAMING_LENGTH #121

Open nl-emmanuellodovice opened 4 years ago

nl-emmanuellodovice commented 4 years ago

Thanks for this wonderful library first of all 🙇

Right now application/json is not one of the content types that should NOT be streamed. Because of this if you are sending a relatively big json you will not be able to utilize django's cache middleware because the response is a streaming response. It would be nice if in the view itself we can disable streaming. Thank you.

nl-emmanuellodovice commented 4 years ago

I am more than willing to open a PR for this if you are open to the idea @seocam