This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 331
Why do I get TypeError failed to fetch on every page refresh #290
Comments
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? |
@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); |
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 |
@Lucent The change in uBO causing the issue was caused by a relatively recent change, it did not exist back in December 2019. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm struggling to resolve the following error on my webblog.
Why do I get TypeError failed to fetch on every page refresh. Only the very first time I load the page it loads without errors. Then on every refresh I get errors.
https://marcofranssen.nl
I have been checking this for a while now, but don't have any clue how to resolve.
I hope someone is able to point me in a solution direction.
My code looks as following:
The text was updated successfully, but these errors were encountered: