It seems that only when application is compiled for production (PWA) in Angular 8 causes problems for the browser to receive SSE events from the server.
If I run the application in development mode (simply with ng serve) things work as expected. So my initial thought is that PWA is somehow the root of the problem.
I've tried to exclude the caching on the api /v1/events in ngsw-config.json but there is no difference:
{
"name":"api",
"urls": ["/api/v1/**"],
"cacheConfig": {
"maxSize": 0,
"maxAge": "0u",
"strategy": "freshness"
}
}
Anyone had a similar problem and managed to solve it properly?