Service worker js file doesn't show on Chrome dev tools network tab
Asked Answered
L

1

9

I am trying to see the request the browser does to get the service worker implementation, but it doesn't show at all. I know for sure that my app has a working service worker, but I would like to be able to see that request on the network tab.

Is it possible? Is there a reason for it not to appear by default?

PS: I am not talking about the requests that the SW cache. I am talking about the browser getting the SW itself.

Ligon answered 9/6, 2022 at 19:14 Comment(3)
Please see bugs.chromium.org/p/chromium/issues/detail?id=1335463Newhall
@JeffPosnick, maybe this should have a proper answer which can then be accepted, something like "Known bug, might get fixed one day if important people complain loudly enough"?Donaldson
Not sure why the service worker registration shouldn't appear in DevTools. Maybe tools like mitmproxy.org or ngrok could help you in debugging the network request you are looking for.Igorot
L
0

Update: In my case my project bundle was too large and the js file was being ignored by workbox. I had to set maximumFileSizeToCacheInBytes to a higher value.

Ligon answered 29/5 at 20:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.