Skip to content

major: migrate sw to workbox

Jean-Baptiste Pasquier requested to merge feature/workbox into master

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 the precacheAndRoute([])
  • Allowed components to access client customization from hubl.client
  • Implemented a confirm box for new versions to ask the visitor to perform an upgrade:

image

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.

Edited by Jean-Baptiste Pasquier

Merge request reports