Re: compressing chunked responses

78 views
Skip to first unread message

Matthew Hadley

unread,
Dec 3, 2012, 12:57:13 AM12/3/12
to expre...@googlegroups.com
Has nobody else encountered this? Seems like it would be a common issue for flushing the response. Would I be better trying to seek help on the connect middleware that does the compression?


On Sunday, 11 November 2012 22:55:28 UTC-8, Matthew Hadley wrote:
If express is streaming a response, is it possible to compress the chunks? I would like to be able to flush parts of a webpage as they are available to send to the client and to send those chunks compressed (when the client supports them). When I have express using compress, however, it does not send the response to the client until the page is completely rendered. If I turn compress off, then chunk streaming works again.

Please have a look at this use case as a demonstration:

Thanks for any help!

Matt
Reply all
Reply to author
Forward
0 new messages