Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] miniflare aggressively buffers responses #8004

Open
vicb opened this issue Feb 3, 2025 · 2 comments
Open

[BUG] miniflare aggressively buffers responses #8004

vicb opened this issue Feb 3, 2025 · 2 comments
Assignees

Comments

@vicb
Copy link
Contributor

vicb commented Feb 3, 2025

There is a bug in [email protected] causing responses to be aggressively buffered.

It breaks PPR in Next.js with wrangler dev - PPR works fine when deployed.
See opennextjs/opennextjs-cloudflare#309

I have a pretty good idea of the the root cause and how to fix that.
I'll add more details here later this week and will submit a fix PR.

One workaround for now is to set the Content-Encoding of the response to identity (any value other than gzip or br should do).

/cc @mhart @jasnell as we discussed it earlier

@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Feb 3, 2025
@vicb vicb self-assigned this Feb 3, 2025
@vicb vicb changed the title [BUG] miniflare aggressively buffers response [BUG] miniflare aggressively buffers responses Feb 3, 2025
@edmundhung edmundhung moved this from Untriaged to Backlog in workers-sdk Feb 3, 2025
@hi-ogawa
Copy link

hi-ogawa commented Feb 6, 2025

I reported something similar a long time ago. Is this a same issue? #6577

@vicb
Copy link
Contributor Author

vicb commented Feb 6, 2025

@hi-ogawa this is probably the same root cause - I'll work on that probably early next week. Let's keep both issues opened until then.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants