4 ms·
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 c
by joombar 13y ago
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.
- joombar 13y agoIn meantime, made a bug report: https://code.google.com/p/chromium/issues/detail?id=309092 https://code.google.com/p/chromium/issues/detail?id=309092
- jongleberry 13y agoin my experience, you need to set flush to SYNC for it to work on chrome without manually flushing
- joombar 13y agoDo 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/streamsource.js#L133 https://github.com/jimhigson/oboe.js/blob/master/test/stream...
- jongleberry 13y agoYou need to construct the stream with flush: require('zlib').Z_SYNC_FLUSH