We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://developer.chrome.com/docs/workbox/using-plugins
Question is how do I translate this piece of code: GoogleChrome/workbox#2599 (comment)
into vite pwa config without having to assign a custom base service-worker
which involves having a statusPlugin inside NetworkOnly constructor ?
The text was updated successfully, but these errors were encountered:
Check vite-pwa/sveltekit#65 (comment)
For background sync you can use backgroundSync entry, something like this (not tested):
backgroundSync
runtimeCaching: [{ urlPattern: /\/api\/.*\/*.json/, handler: 'NetworkFirst', // <== or NetworkOnly: if so update the options properly method: 'POST', options: { cacheName: 'api-cache', expiration: { maxEntries: 5, maxAgeSeconds: 60, }, backgroundSync: { name: 'api-queue', options: { maxRetentionTime: 60 * 60, }, }, }, }]
Sorry, something went wrong.
No branches or pull requests
https://developer.chrome.com/docs/workbox/using-plugins
Question is how do I translate this piece of code:
GoogleChrome/workbox#2599 (comment)
into vite pwa config without having to assign a custom base service-worker
which involves having a statusPlugin inside NetworkOnly constructor ?
The text was updated successfully, but these errors were encountered: