Add data directory to service worker config

master
trivernis 5 years ago
parent aa18bc191c
commit d2800ddc6a

@ -14,17 +14,29 @@
"/*.js"
]
}
}, {
},
{
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**",
"/data/**",
"/*.(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