I'm trying to implemement a 'cache then network' strategy using Workbox.
I've set Workbox to use the staleWhileRevalidate runtimeCaching handler, but I'm not sure how best to update the page once/if the cache us updated from the network.
The docs say:
In addition to updating the appropriate caches, it will also trigger any appropriate plugins defined in the underlying RequestWrapper.
Would that be any use? Are there any examples of this strategy being done with Workbox (which, by the way, is a wonderful tool, so thank you to its maintainers)?