• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Question Server Sent Events (SSE) problem

Manfred Beck

Basic Pleskian
Server operating system version
AlmaLinux 8.10 (Cerulean Leopard)
Plesk version and microupdate number
Plesk Obsidian 18.0.79 Update #4
In my development environment everything works fine

JQuery:
source = new EventSource(processor);
source.onmessage=function(event) {...
PHP:
header('Content-Type: text/event-stream');
header('Cache-Control: no-cache');
...processing query result, echoing each record details to frontend, close connection, done.

In Plesk all results come at once, so I presume it is a cache problem. If so, how can I change the cache settings for just one domain? Any help highly appreciated.

Found a solution, worder if this is recomemnded:
  • proxy_buffering off;
  • proxy_cache off;
  • chunked_transfer_encoding on;
  • proxy_read_timeout 24h;
  • proxy_send_timeout 24h;
 
ok, finally found a solution, forget all NGINX additional directives.

header( 'X-Accel-Buffering: no' ); // This is useful to disable buffering in nginx through headers.

does the job!!!
 
Back
Top