You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Reacted by Gregorio Di Stefano, Ronny Løvtangen, marcdk, Jason Smythe and halstjas
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.
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.
Activity
gaearon commentedon Oct 26, 2016
PR sounds good.
Enable compression on webpack-dev-server (react#966)
Enable compression on webpack-dev-server (#966) (#968)
Merge branch 'master' of https://github.com/facebookincubator/create-…
Merge pull request #2
SpaceK33z commentedon Nov 20, 2016
Just a note that this can be closed since the PR has been merged.
gaearon commentedon Nov 20, 2016
Right. Fixed via #968, will be out in 0.8.0.
Enable compression on webpack-dev-server (react#966) (react#968)
cloudmu commentedon Jan 9, 2017
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.
Enable compression on webpack-dev-server (react#966) (react#968)
Enable compression on webpack-dev-server (react#966) (react#968)
Merge branch 'master' of https://github.com/facebookincubator/create-…
don-p commentedon Dec 14, 2018
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.
Timer commentedon Dec 28, 2018
Hi! Please open a new issue for this -- it's hard to track when commenting on old issues.