Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coi-serviceworker causes page to reload continuously? #5

Closed
sideshowbarker opened this issue Jun 21, 2022 · 2 comments
Closed

coi-serviceworker causes page to reload continuously? #5

sideshowbarker opened this issue Jun 21, 2022 · 2 comments

Comments

@sideshowbarker
Copy link

sideshowbarker commented Jun 21, 2022

https://stackoverflow.com/questions/68609682/is-there-any-way-to-use-sharedarraybuffer-on-github-pages has comments from the OP and another commenter saying, “the page keep loading again and again” and “This does not work, the crossOriginIsolated is never true, and the page reloads continuosly”

I’ve not been able to reproduce that problem myself — the library works fine where I’ve tried it — but I’m raising this issue to see if it might be possible to resolve the problems for the cases in which other users have encountered it.

@gzuidhof
Copy link
Owner

I'm not sure about the situation in which this happens, I wouldn't be surprised if there are some versions of old browsers that don't cooperate as they should. If the commenter can detect these browsers they could use shouldRegister to check for this browser and they can share their learnings in a new issue.

Until we have more information we can't do anything actionable here. The trick that coi-serviceworker uses is not necessary for more 'serious' projects - in those cases you should set the required headers on your backend.

@kleisauke
Copy link

FWIW, according to https://stackoverflow.com/questions/68609682/is-there-any-way-to-use-sharedarraybuffer-on-github-pages/68675301#comment129294263_68675301 this issue may occur if coi-serviceworker.js was not served from the top-level directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants