Add sw caching for logo/favicon.

This commit is contained in:
FireMasterK 2021-04-22 19:41:46 +05:30
parent a2afdb0b4d
commit 904c149ed1
No known key found for this signature in database
GPG key ID: 8DFF5DD33E93DB58

View file

@ -9,7 +9,11 @@ module.exports = {
workboxOptions: {
navigateFallback: 'index.html',
skipWaiting: true,
importWorkboxFrom: 'local'
importWorkboxFrom: 'local',
runtimeCaching: [{
urlPattern: /\.(?:png|svg|ico)$/,
handler: 'CacheFirst',
}],
}
}
}