javascriptgoogle-chromeservice-workerworkbox

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


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.


Solution

  • 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.