I've noticed that the Service Worker attachment can happen too late for the inner iframes to be controlled by it, which results in possible 404's when you're not going through the worker.
To reproduce, it's easiest a lot of sites loading at once to the service worker attachment cannot keep up. Though, it's a race condition so not always reproducible.
A solution would be to wait for the Service Worker to be attached in the inner iframes.
I've noticed that the Service Worker attachment can happen too late for the inner iframes to be controlled by it, which results in possible 404's when you're not going through the worker.
To reproduce, it's easiest a lot of sites loading at once to the service worker attachment cannot keep up. Though, it's a race condition so not always reproducible.
A solution would be to wait for the Service Worker to be attached in the inner iframes.