I've got an express server with a self-signed SSL which just serves assets for SPA frontend. When i visit https://localhost:8433
application stats up and successfully fetches all requried assets. However at the same time app's service worker (workbox) also sends its requests to cache the same assets. And those requests randomly fail with a TypeError: Failed to fetch
Seems like some requests are randomly being canceled by service worker.
I've tried to search for similar issues, but to no awail. Some recommend playing around with CORS, that didn't help, swapping localhost
for 127.0.0.1
or changing caching strategies had the same effect, in the end i had the very minimal configuration with precaching only (no runtime caching), unfortunatelly nothing really helped.
I'm pretty sure it should be a common issue, i'm just missing it :) Does anyone have any thoughts?
By the way, when app is served from insecure http
- no errors at all.