

Window Clients can listen for updates and take appropriate action, like automatically displaying a message to the user letting them know that updates are available. Whenever the "revalidate" step of that strategy retrieves a response from the network that differs from what was previously cached, this module will send a message (via postMessage()) to all Window Clients within scope of the current service worker. This is most commonly used along with the StaleWhileRevalidate strategy. The workbox-broadcast-update package provides a standard way of notifying Window Clients that a cached response has been updated. When responding to requests with cached entries, while being fast, it comes with a tradeoff that users may end up seeing stale data.

Review the API reference for workbox-broadcast-update.
