django-revproxy icon indicating copy to clipboard operation
django-revproxy copied to clipboard

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

Open nl-emmanuellodovice opened this issue 4 years ago • 1 comments

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 avatar Oct 27 '20 12:10 nl-emmanuellodovice

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

nl-emmanuellodovice avatar Nov 02 '20 12:11 nl-emmanuellodovice