• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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