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 have a completely static site - index.html and some CSS/JS/PNG files. I'd like to use a service worker to cache all of them. It seems that Workbox should make this easy. Here's my sw.js:  importScripts('https://storage.googleapis.com/wo...
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 am creating a React App using the Create React App utility and I want to override the default service worker that it provides.  Since I don't want to eject my app, I am using the workbox-build package to create my service worker (I also used ya...
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:...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.