I have a HTTP Server Sent Events endpoint sat behind Cloudflare - basically a long running http endpoint. When I call the endpoint directly, bypassing Cloudflare, the response works correctly with every character being flushed. When I call the endpoint behind Cloudflare the response is never fully flushed, leaving off several characters until more data is flushed or the response is complete.
Response buffering and caching are turned off and I’m unsure what else to try. Is anyone able explain why this is happening and what I can do to prevent it?