Service worker should only be enabled once a user is logged in #1663
Labels
Type: Improvement
Improvement/Extension of existing feature with benefit for the user
Type: Refactoring / Technical Enh.
Technical Enhancement without changes for the user
Currently, the service worker is registered at the app start. As we are now also offering the app publicly as a form, this is unnecessarily caching a lot of files that will never be used.
The service worker module allows to add a registrationStrategy there a observable can be provided and the service worker will be registered once the observable emits a value. There we can use the
LoginState
to only register this once the user has logged in.The text was updated successfully, but these errors were encountered: