expresse
expresse copied to clipboard
Issue with webpack-dev-server compression
As stated in the documentation SSE encounters problem when undergoing compression. The proposed flushAfterWrite: true
is not effective for webpack-dev-server compression (which is used in create-react-app). To resolve this, one can set the 'Cache-Control' response header to 'no-cache, no-transform' (at least while not in production). I wasn't sure how to alter response headers using expresse, so I uninstalled.
Thanks a lot for signaling that. This will be taken in account in a future version. Also, you should be able to change the response headers in the middleware with res.header('Cache-Control', 'no-cache, no-transform')
, there are no particular restrictions.