javascript – Service worker causing site can’t be reached

I have the following service worker code. The website works sometimes and sometimes it gives “This site can’t be reached The webpage at might be temporarily down or it may have moved permanently to a new web address.”. We are using the workbox library. Please help if something is wrong in the code. /* … Read more