Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Cache management forbids to host several PWAs each in its subfolder on the same domain #162

Open
VincentJousse opened this issue Jun 12, 2017 · 4 comments

Comments

@VincentJousse
Copy link

On a given domain, I need to host several PWAs. I created a folder for each and each one works perfectly if it is the only one installed on the current browser.
Each installation of a new PWAs resets all the cache, making the first apps unusable.

The offline-plugin project solved this by adding a cacheName setting.

It is a huge limitation to allow only one PWA per origin.

@BorntraegerMarc
Copy link

BorntraegerMarc commented Jun 12, 2017

You can add scopes for service workers. This should enable you to have multiple service workers for one domain

@VincentJousse
Copy link
Author

Have you a link to some documentation or explanations ?

@VincentJousse
Copy link
Author

The scopes are abstracted by the mobile-toolkit library, right ?
How can I tweak this using the angular service worker ?

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

No branches or pull requests

2 participants