Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

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

uy/sund7bd5a6d79b2
diff --git a/src/utils/defaults.js b/src/utils/defaults.js
index 12764ebe..847dbe6f 100644
--- a/src/utils/defaults.js
+++ b/src/utils/defaults.js
@@ -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,
+ },
+ },
],
},
},