mirror of
https://github.com/Lissy93/dashy.git
synced 2025-09-25 18:58:48 +02:00
fix(pwa): should always fetch conf.yml first
This commit is contained in:
parent
d453d24ccb
commit
d7bd5a6d79
@ -337,6 +337,18 @@ module.exports = {
|
||||
/^manifest.*\.js$/, // default value
|
||||
/\.nojekyll$/,
|
||||
/\.gitignore$/,
|
||||
/conf\.yml$/, // ignore config for runtimeCaching
|
||||
],
|
||||
// https://developer.chrome.com/docs/workbox/modules/workbox-build#type-RuntimeCaching
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: /conf\.yml$/,
|
||||
handler: 'NetworkFirst',
|
||||
options: {
|
||||
cacheName: 'config-cache',
|
||||
networkTimeoutSeconds: 3,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user