Giter Site home page Giter Site logo

Comments (4)

Lucent avatar Lucent commented on June 11, 2024

Did you figure this out? I have the same issue, but only with Edge Chromium. First request to ads goes through, but further that are handled by a fetch event in a service worker return that error. Is it cross-origin related?

from sw-toolbox.

marcofranssen avatar marcofranssen commented on June 11, 2024

@Lucent This is what I run now. Never tried to get ads working via service worker as I couldn't really figure it out.

self.addEventListener('install', function () { return self.skipWaiting(); });
self.addEventListener('active', function () { return self.clients.claim(); });

toolbox.precache(['/','/about/','/git-recipes/','/hello-next-js-goodbye-hexo/','/remove-files-from-git-history-using-git-filter-repo/','/nginx-1-19-supports-environment-variables-and-templates-in-docker/','/building-a-elasticsearch-cluster-using-docker-compose-and-traefik/','/use-the-acme-dns-challenge-to-get-a-tls-certificate/']);
toolbox.options = {"networkTimeoutSeconds":5};

toolbox.router.any(/www\.google-analytics\.com/, toolbox.networkOnly);
toolbox.router.any(/.*\.(js|css|jpg|jpeg|png|gif)$/, toolbox.cacheFirst);
toolbox.router.any(/content.json$/, toolbox.cacheFirst);
toolbox.router.any(/\//, toolbox.networkFirst);

from sw-toolbox.

Lucent avatar Lucent commented on June 11, 2024

Did you have uBlock Origin enabled at the time and your site whitelisted? If so, I identified a problem with the extension on Edge that may have been the cause, for future visitors: uBlockOrigin/uBlock-issues#1478

from sw-toolbox.

gorhill avatar gorhill commented on June 11, 2024

@Lucent The change in uBO causing the issue was caused by a relatively recent change, it did not exist back in December 2019.

from sw-toolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.