Server-Sent Events Arrive All at Once: Fix Response Buffering
The EventSource client does not receive events for long and then gets them in one package.
How to identify the source of the problem
Check Content-Type text/event-stream and whether proxy caches the stream response.
Save method, status, headers and anonymized body requests and answers.
Repair steps
Disable unintended buffering on this route and send correctly completed events and heartbeat.
How to Test Solution
Events arrive during the process instead of only after the HTTP is closed.
Security and restrictions
Do not disable authorization or validation of webhook signature for status 200. Wash the tokens in the logs.