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

Handle old serviceworkers #11

Open
atjn opened this issue Jan 31, 2023 · 0 comments
Open

Handle old serviceworkers #11

atjn opened this issue Jan 31, 2023 · 0 comments

Comments

@atjn
Copy link
Owner

atjn commented Jan 31, 2023

If an old serviceworker was on the site before, it needs to still be there for the browser to update it and thereby discover that the EWAB serviceworker now exists instead. This can be achieved by simply placing an empty file on the exact path that the old serviceworker was on.
It could be a built-in feature of EWAB to keep track of old serviceworkers and update them with empty files.

EWAB should also have some way of updating its own serviceworkers in case there is a name-change (currently a thing when the user updates the EWAB alias). It could be the above-mentioned feature for simplicity, or something more complicated, like ensuring that the serviceworker update file is always redownloaded.

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

1 participant