fix: add new service worker (#2971)
This commit is contained in:
parent
2f4ee35561
commit
4d95c17e86
4 changed files with 31 additions and 1 deletions
|
@ -202,6 +202,11 @@ export default defineNuxtModule<VitePWANuxtOptions>({
|
|||
'Cache-Control': 'public, max-age=0, must-revalidate',
|
||||
},
|
||||
}
|
||||
nitroConfig.routeRules!['/elk-sw.js'] = {
|
||||
headers: {
|
||||
'Cache-Control': 'public, max-age=0, must-revalidate',
|
||||
},
|
||||
}
|
||||
for (const locale of pwaLocales) {
|
||||
nitroConfig.routeRules![`/manifest-${locale.code}.webmanifest`] = {
|
||||
headers: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue