You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed vite-plugin-pwa in place of the workbox-webpack-plugin we were using previously. It's quite a bit nicer, much more transparent to the Workbox API, though the documentation is lacking in some places. The most useful documentation is actually in its type definitions.
I haven't dwelt too much on this, but now that we have better tooling for our service worker's configuration, it's probably worth evaluating what strategy we're using (currently "StaleWhileRevalidate") and what all we're choosing to cache. There's also some nice tooling for including an update prompt, which could be a nice alternative to maintaining my DIY onupdatefound function.
The text was updated successfully, but these errors were encountered:
I installed
vite-plugin-pwa
in place of theworkbox-webpack-plugin
we were using previously. It's quite a bit nicer, much more transparent to the Workbox API, though the documentation is lacking in some places. The most useful documentation is actually in its type definitions.I haven't dwelt too much on this, but now that we have better tooling for our service worker's configuration, it's probably worth evaluating what strategy we're using (currently
"StaleWhileRevalidate"
) and what all we're choosing to cache. There's also some nice tooling for including an update prompt, which could be a nice alternative to maintaining my DIYonupdatefound
function.The text was updated successfully, but these errors were encountered: