Skip to content

Standardize SSE response headers - #1204

Merged
Kehrlann merged 1 commit into
mainfrom
dgarnier/sse-headers
Oct 20, 2026
Merged

Kehrlann merged 1 commit into
mainfrom
dgarnier/sse-headers

Conversation

@Kehrlann

Copy link
Copy Markdown
Contributor
  • Extract SSE response preparation into HttpServletResponseUtils
  • Add X-Accel-Buffering: no header to SSE responses
  • Add no-transform to the SSE Cache-Control header
  • Drop Connection: keep-alive from SSE responses (prohibited in HTTP/2)

Fixes #293
Supersedes #1139

@Kehrlann
Kehrlann force-pushed the dgarnier/sse-headers branch 2 times, most recently from 039715d to 3d2ae9e Compare October 20, 2026 16:52
- Extract SSE response preparation into HttpServletResponseUtils
- Add X-Accel-Buffering: no header to SSE responses
- Add no-transform to the SSE Cache-Control header
- Drop Connection: keep-alive from SSE responses (prohibited in HTTP/2)

Fixes #293

Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
@Kehrlann
Kehrlann force-pushed the dgarnier/sse-headers branch from 3d2ae9e to d2487ae Compare October 20, 2026 16:52
@Kehrlann
Kehrlann merged commit 615a88b into main Oct 20, 2026
25 checks passed
@Kehrlann
Kehrlann deleted the dgarnier/sse-headers branch October 20, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add X-Accel-Buffering: no Header for SSE Responses

2 participants