Home > Software design >  How to test if Workbox precaching is working
How to test if Workbox precaching is working

Time:10-08

My question is very similar to enter image description here

Here you can see the style.css in row #0.

When I reload my website I can see in Chrome's network tab that the Service Worker received a request for style.css
enter image description here

After clicking on the style.css entry on the network panel I see following information:
enter image description here

Here I can see the source of Response which says "Service Worker Cache Storage".
Does this mean the style.css was sent from the cache instead of the network to the browser?

I'm a bit confused about that because enter image description here

And on enter image description here

I don't think this is related to different versions of Google Chrome as I can reproduce the "(disk cache)" entry by using the (enter image description here

CodePudding user response:

I've managed it to create offline support for my pwa. So I think the files are loaded from the cache.

  • Related