Skip to content

Add text/event-stream as gzippable#55

Closed
robdann wants to merge 0 commit into3redronin:masterfrom
robdann:master
Closed

Add text/event-stream as gzippable#55
robdann wants to merge 0 commit into3redronin:masterfrom
robdann:master

Conversation

@robdann
Copy link
Contributor

@robdann robdann commented Dec 23, 2025

event-streams can be gzipped as they are text

@danielflower
Copy link
Contributor

Hello, thanks for the PR.

I was hesitating to enable compression for SSE as many (most?) use cases are sending relatively small payloads per message, which reduces the effectiveness of gzip and may be a net negative.

i haven’t measured so not sure though.

having an option to opt in might be good, so that use cases with larger messages can benefit.

@robdann
Copy link
Contributor Author

robdann commented Dec 23, 2025

Yes, I thought that might be the case, just trying my luck :-)

It's doable via the builder, it just requires a bit more customisation to work. Appreciate your opinion as always

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.

2 participants