Skip to content
Snippets Groups Projects
Commit 1b163179 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Add new dataGroup for caching static content

parent 8c8d1fc7
1 merge request!231Resolve "Improve Service Worker strategy"
......@@ -4,26 +4,36 @@
[
{
"name": "api",
"urls": ["/**"],
"urls": ["/api/**"],
"cacheConfig": {
"strategy": "freshness",
"maxSize": 500,
"timeout": "3s",
"maxAge": "7d"
}
},
{
"name": "source",
"urls": ["!/**/*api*"],
"cacheConfig": {
"strategy": "performance",
"maxSize": 500,
"timeout": "3s",
"maxAge": "30d"
}
}
],
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"updateMode": "prefetch",
"installMode": "lazy",
"updateMode": "lazy",
"resources": {
"files": [
"/favicon.ico",
"/*.html",
"/*.css",
"/*.js"
"/*.scss",
"/*.ts"
],
"urls": [
"https://fonts.googleapis.com/**"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment