Is anyone else having issues with service workers coming from custom domains?
What happened today was pretty strange, but that’s usually normal when dealing with service workers.
I had to update the frontend canister of icpcoins with things that shouldn’t be related to the problem. Once I upgraded the requests towards "api_icpcoins_com were getting blocked by the service worker (These load a list of tokens). They are not hosted on the IC. Is that an intentional restriction? Not being able to fetch anything from the www other than IC?
These worked just fine for a few weeks until now. Perhaps the service worker got changed recently?
For some strange reason, half of my different browsers and computers/phones work and the other half don’t.
And on some the whole page doesn’t load. I’ve tried clearing app data, unregistering service workers, etc, but that doesn’t fix anything. Sometimes checking it out in incognito works, and then after 3 refreshes stops working.
When the page doesn’t load at all I get this errors:
Perhaps a boundary node I am resolving to is lagging. What does the above message mean?
Safari reports this:
I am not sure what to do now. If I point the domain to another place, the service worker installed on all old users is probably going to deny the requests and users will have to manually delete it, which is something 1 out of 1000 will do.
This makes me think, having a global service worker for all, which can suddenly upgrade and break how things work, losing all your users, may not be a good idea. Not sure if that’s happening tho. If there was an update with a breaking change, perhaps custom service workers on the custom domains will be best, or having the option of selecting a specific version.