Is there a reason that compress key is not set in WebpackDevServer config? I tried it on my machine and it made reloads faster and bandwidth usage smaller without any apparent problems.
I can send a PR if that's okay.
PR sounds good.
Just a note that this can be closed since the PR has been merged.
Right. Fixed via #968, will be out in 0.8.0.
FYI, an unexpected consequence of webpack dev server compression is that Server Sent Events over proxy would be buffered, instead of proxied instantaneously.
The issue goes away in production mode, or if I set the webpack dev server compress flag to be false in dev mode.
I bet there are some tricks that would allow compression on without affecting Server Sent Events, but I haven't figured it out yet.
FYI, an unexpected consequence of webpack dev server compression is that Server Sent Events over proxy would be buffered, instead of proxied instantaneously.
The issue goes away in production mode, or if I set the webpack dev server
compressflag to befalsein dev mode.I bet there are some tricks that would allow compression on without affecting Server Sent Events, but I haven't figured it out yet.
This has most certainly caused problems with Server-Sent-Events. I'm using this in my project, and have determined that the gzip compression is causing the event connection to close. I'm struggling to find a way to unset this - however, it's not clear to me why this change was made, since in a development environment it's a low-impact issue to have non-compressed files served. The trade-off of making SSE unusable doesn't seem to have been a good call.
Thanks.
Hi! Please open a new issue for this -- it's hard to track when commenting on old issues.
Most helpful comment
FYI, an unexpected consequence of webpack dev server compression is that Server Sent Events over proxy would be buffered, instead of proxied instantaneously.
The issue goes away in production mode, or if I set the webpack dev server
compressflag to befalsein dev mode.I bet there are some tricks that would allow compression on without affecting Server Sent Events, but I haven't figured it out yet.