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:
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;