Add data directory to service worker config

master
trivernis 5 years ago
parent aa18bc191c
commit d2800ddc6a

@ -14,17 +14,29 @@
"/*.js" "/*.js"
] ]
} }
}, { },
{
"name": "assets", "name": "assets",
"installMode": "lazy", "installMode": "lazy",
"updateMode": "prefetch", "updateMode": "prefetch",
"resources": { "resources": {
"files": [ "files": [
"/assets/**", "/assets/**",
"/data/**",
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
] ]
} }
} }
],
"dataGroups": [
{
"urls": [
"/data/**/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
],
"cacheConfig": {
"maxSize": 250,
"maxAge": "7d"
},
"name": "userDefinedResources"
}
] ]
} }

Loading…
Cancel
Save