I've done a simple service-worker to defer requests that fail for my JS application (following this example) and it works well. But I still have a problem when requests succeed: the requests are done twice. One time normaly and one time by the se...
Using Workbox in a service worker in a javascript webapp. Want to clear the entire workbox/application cache of all content... basically go back to a state as similar as possible to the state before first load of the app into a browser, potentially t...
I'm working with service worker to display notification between my users. In my code I include notificationclick event. With this event I'm trying to manage two cases. First case, if in my browser the page of my site is opening, don't op...
I am using workbox runtime caching to cache external calls (materialize.css is one of those). In my network tab it shows that the request is coming from serviceWorker (looks fine):    But on cache storage my runtime cache looks empty:    You can see...
I stumbled upon this snippet in Google Workbox documentation:  <script> // Check that service workers are registered if ('serviceWorker' in navigator) {   // Use the window load event to keep the page load performant   window.addEventLi...
I'm using workbox with webpack to generate a service worker.  With the following code in webpack.config.js:  new WorkboxPlugin.InjectManifest({   swSrc: "./src/sw.js" }),   a service worker is generated nicely.  In ./src/sw.js, I have:  w...
Sorry, I don't have a reproducible test case of this issue because I've never even seen it happen myself. I only know it happens because of client-side logging in my app and complaints from users.  The problem is:   I deploy a new version of...
Context  I have a SPA that use webpack, vueJS and Workbox. In the service-worker, I have the following lines ():  workbox.precaching.precache([   '/index.html' ])  workbox.routing.registerNavigationRoute('/index.html', {   blacklist:...
i need to "purge" or "invalidate" Workbox SW cache after every release.  that's what i plan to do (dummy version of course), but i haven't enough experience to understand if this is the correct approach:  importScripts(...);...
Chrome in Android and Desktop supports "beforeinstallpromp" event which is can show up add to homescreen banner. I'm try to use the same javascript code for my PWA in iOS but it is doesn't work.     /**  * Clear caches  */ function pw...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.