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

[question] Having Multiple runtime installations #488

Open
anandksalien opened this issue Sep 16, 2020 · 0 comments
Open

[question] Having Multiple runtime installations #488

anandksalien opened this issue Sep 16, 2020 · 0 comments

Comments

@anandksalien
Copy link

Question

Hi,

I want to know if having multiple runtime installations for the Service worker could cause any issue. Some backstory , I'm working on an app , which uses a library. This library uses the offline-plugin to cache the web-pack assets and therefore it has a offline-plugin runtime installation of it's own. The app that i'm working on uses this library at only certain scenarios (only when the user visits a certain URL.). What's happening is that , the SW is set to cache some parts of the app that i'm working on plus whatever the library needs.
Since , the library comes into picture only when someone access a particular URL , the Service worker is only installed when the user visits that URL. To make sure that Service Worker is installed as soon as the user opens the app , i added an extra runtime installation. Would it cause any troubles ?

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