-
Notifications
You must be signed in to change notification settings - Fork 506
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
Service worker not loading the external Material icons file when offline #178
Comments
@alvinkonda you can add this in your runtimeCaching: [
{
// Google fonts
urlPattern: new RegExp('https://fonts.'),
handler: 'cacheFirst',
options: {
cacheName: 'fonts'
}
}
] |
Hi, Sorry but i cant find that file anywhere into my Vuetify PWA template, either Thnx |
Oh sorry wrong repo. I gave you a solution I use with vue CLI 3, where plugins are used instead of templates. You should move to Vue CLI 3 as this PWA template is about to be depreciated (it doesn't use workbox webpack plugin). I think you can use the runtimeCaching option of my previous post inside the SWPrecachePlugin options here. |
Thnx, i tried but it seems to not work plus it is only for production mode as well. Clearly this is a bug with this template, which needed to be solved here as it breaks the scope of progressive web app if the icons are missing on offline mode. |
It used to work for me when I was using this template. Service worker only work in production mode so that's normal. |
clearly a bug with the template. I'm waiting to be solved. |
This is the file. Any idea how to make it work?
https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons
Thanks
The text was updated successfully, but these errors were encountered: