English
BroadcastUpdatePlugin
Class @vite-pwa/workbox-swkit/broadcast-updateThis plugin will automatically broadcast a message whenever a cached response is updated.
Constructor
ts
new BroadcastUpdatePlugin(options?: BroadcastCacheUpdateOptions)Construct a workbox-broadcast-update.BroadcastUpdate instance with the passed options and calls its notifyIfUpdated method whenever the plugin's cacheDidUpdate callback is invoked.