- Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
It worked for me:
config:
"cache": { "runtimeCaching": [ { "urlPattern": "http://localhost:1234/cache.jpg", "handler": "staleWhileRevalidate", "options": { "broadcastUpdate": { "channelName": "api-updates" } } } ] }index.js
const updatesChannel = new BroadcastChannel('api-updates'); updatesChannel.addEventListener('message', event => { console.log(event); });index.html contained <img src="http://localhost:1234/cache.jpg">.
Changing out cache.jpg fires the eventlistener.
Did you use staleWhileRevalidate?
Originally posted by @mischnic in #4 (comment)
Metadata
Metadata
Assignees
Labels
No labels