Skip to content

Commit

Permalink
chore(pwa): exclude index from sw cache
Browse files Browse the repository at this point in the history
- todo: might be better to fetch it with "network-first" strategy
  • Loading branch information
lukashroch committed Jun 10, 2022
1 parent 2f121a0 commit d04506b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/admin/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ module.exports = {
workboxPluginMode: 'GenerateSW',
workboxOptions: {
cleanupOutdatedCaches: true,
exclude: [/\.map$/, /^manifest.*\.js$/, /index.html/],
importScripts: ['js/web-push.js'],
skipWaiting: true,
},
Expand Down
1 change: 1 addition & 0 deletions apps/survey/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ module.exports = {
workboxPluginMode: 'GenerateSW',
workboxOptions: {
cleanupOutdatedCaches: true,
exclude: [/\.map$/, /^manifest.*\.js$/, /index.html/],
skipWaiting: true,
},
},
Expand Down

0 comments on commit d04506b

Please sign in to comment.