fix(pwa): should always fetch conf.yml first

This commit is contained in:
uy/sun 2025-08-13 00:54:06 +00:00
parent d453d24ccb
commit d7bd5a6d79

View File

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