• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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