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',
}],
}
}
}