I have some php code running:
header("Content-Type: text/event-stream");
header("Cache-Control: no-cache");
header("X-Accel-Buffering: no");
I was expecting this to stop nginx from output buffering, but for some reason my eventloop gets buffered.
According to the NGINX documentation (X-Accel | NGINX) the above code should be (more than) enough. But for some reason my eventloop gets all chunked up.
How can I force NGINX to listen to the header instruction? Is there a template I should change/update?
Details/specifics:
- Dedicated server, AMD64 (12 core), 64GB RAM
- Debian 10.9 (fresh install)
- HestiaCP 1.4.2 (fresh install)
- PHP7.4-FPM