major: migrate sw to workbox
Migrate the SW to Workbox
- Keeping the same caching strategy while being more aggressive on CDNs content
- Added
parcel-plugin-sw-cache
as dependency to generate theprecacheAndRoute([])
- Allowed components to access client customization from
hubl.client
- Implemented a confirm box for new versions to ask the visitor to perform an upgrade:
Logo is the one from client.logo
, yes perform the SW update + reload the page, no does nothing.
In case visitor click on No, the SW will update on next page load.