Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve service worker configuration #484

Open
jgaehring opened this issue Jan 14, 2022 · 0 comments
Open

Improve service worker configuration #484

jgaehring opened this issue Jan 14, 2022 · 0 comments

Comments

@jgaehring
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant