---
url: /api/symbols/workbox-swkit/broadcast-update/broadcastupdateplugin.md
---

# BroadcastUpdatePlugin

Class @vite-pwa/workbox-swkit/broadcast-update

This 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.
