mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-25 06:57:22 +00:00
Add sw caching for logo/favicon.
This commit is contained in:
parent
a2afdb0b4d
commit
904c149ed1
@ -9,7 +9,11 @@ module.exports = {
|
|||||||
workboxOptions: {
|
workboxOptions: {
|
||||||
navigateFallback: 'index.html',
|
navigateFallback: 'index.html',
|
||||||
skipWaiting: true,
|
skipWaiting: true,
|
||||||
importWorkboxFrom: 'local'
|
importWorkboxFrom: 'local',
|
||||||
|
runtimeCaching: [{
|
||||||
|
urlPattern: /\.(?:png|svg|ico)$/,
|
||||||
|
handler: 'CacheFirst',
|
||||||
|
}],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user