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
Option 2:
Add "no-transform" to "Cache-Control" headers for SSE responses. Compression middleware will detect this header and skip compression on this particular response. See expressjs/compression#51
response.set({'Cache-Control': 'no-transform',});
The text was updated successfully, but these errors were encountered:
Bug Report
Current behavior
Current SSE not compatible with compression() middleware (https://github.com/expressjs/compression).
If compression middleware is present, SSE events do not seem to reach the browser.
Expected behavior
Expecting SSE to work with compression() middleware
Possible Solutions
Option 1:
Filter sse from compression()
Option 2:
Add "no-transform" to "Cache-Control" headers for SSE responses. Compression middleware will detect this header and skip compression on this particular response. See expressjs/compression#51
The text was updated successfully, but these errors were encountered: