MatthewWid / better-sse

⬆ Dead simple, dependency-less, spec-compliant server-sent events implementation for Node, written in TypeScript.
https://matthewwid.github.io/better-sse/
MIT License
558 stars 14 forks source link

Add header to disable proxy buffering #38

Closed MatthewWid closed 2 years ago

MatthewWid commented 2 years ago

Inspired by this line from the Nest SSE implementation, add the X-Accel-Buffering header set to no in the default response headers of the Session to indicate to a reverse proxy such as NGINX to not buffer response data for the connection.