erehwonmi
erehwonmi
CDCloudflare Developers
Created by erehwonmi on 11/14/2024 in #general-help
SSE / Event Streaming wont work behind Cloudflare Proxy
Just in case anyone is facing this issue. I already fixed it by disabling Traefik's GZip, but I'm not sure about the relationship between Traefik's GZip capability and Cloudflare. Is it because Cloudflare also does compression using Brotli before serving the response?
3 replies
CDCloudflare Developers
Created by erehwonmi on 11/14/2024 in #general-help
SSE / Event Streaming wont work behind Cloudflare Proxy
No description
3 replies
CDCloudflare Developers
Created by max on 11/11/2024 in #general-help
cloudflare proxy doesnt stream responses
Also when I access my site directly without Cloudflare (direct VPS access) it works. :NotLikeThis:
6 replies
CDCloudflare Developers
Created by max on 11/11/2024 in #general-help
cloudflare proxy doesnt stream responses
What headers are you using? I have a similar problem, like I tried everything but nothing seems to work lmao. I have this response headers and I'm using NextJS 14. const stream = new ReadableStream({ // append events here.... }) return new NextResponse(stream, { headers: { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', Connection: 'keep-alive', 'Transfer-Encoding': 'chunked', }, });
6 replies