Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Quick experiment says: Gzip can be written out as a stream ok. Can't comment on Apache but Node does it fine.

Firefox's xhr fires progress events for gzipped content but not Chrome's. Looking to see if I can find a way round it.




in my experience, you need to set flush to SYNC for it to work on chrome without manually flushing


Do you know how to do that from node?

Here's the little test service I wrote to stream out some gzipped content:

https://github.com/jimhigson/oboe.js/blob/master/test/stream...


You need to construct the stream with flush: require('zlib').Z_SYNC_FLUSH




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: