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
SSE events in the Next.js 15 client were arriving in bursts (UI updated all at once) while Vite streamed fine.
Root cause: intermediaries (Next proxy/CDN/Nginx) were buffering or transforming the response.
Add explicit streaming-friendly headers on the SSE endpoint:
- Cache-Control: no-cache, no-transform → disable caching and proxy transformations (e.g., gzip) that break chunked delivery.
- Connection: keep-alive → keep the HTTP connection open for long-lived SSE.
- X-Accel-Buffering: no → disable Nginx proxy buffering so chunks flush immediately.
0 commit comments