Streaming is buffered when Cloudflare proxy is on?

I'm deploying an edge function on Vercel. It streams a response and it works just fine when Cloudflare proxy is disabled. But, when the proxy is enabled, it seems it buffers the stream and send it as a whole once it's done. How is it possible? The weird thing is that it worked a few days ago with proxy enabled as well. I also tried to set these headers in the response to tell Cloudflare not to "cache anything":
'Cache-Control': 'no-store, no-cache, must-revalidate, proxy-revalidate',
Pragma: 'no-cache',
'Cache-Control': 'no-store, no-cache, must-revalidate, proxy-revalidate',
Pragma: 'no-cache',
I just don't know what to do now...
3 Replies
joulev
joulev14mo ago
same issue here, hope someone looks into this soon
c@sper
c@sper14mo ago
Same here
joulev
joulev14mo ago
No not really, we just do some simple proxying https://discord.com/channels/595317990191398933/1162924296906231868
Want results from more Discord servers?
Add your server