Skip to content
Snippets Groups Projects
Commit dfa9a30a authored by Tom Käsler's avatar Tom Käsler
Browse files

Merge branch '234-improve-service-worker-strategy' into 'master'

Resolve "Improve Service Worker strategy"

See merge request !231
parents 85f6d3d2 5585ccda
1 merge request!231Resolve "Improve Service Worker strategy"
Pipeline #27356 passed with stages
in 6 minutes and 25 seconds
...@@ -4,26 +4,38 @@ ...@@ -4,26 +4,38 @@
[ [
{ {
"name": "api", "name": "api",
"urls": ["/**"], "urls": ["/api/**"],
"cacheConfig": { "cacheConfig": {
"strategy": "freshness", "strategy": "freshness",
"maxSize": 500, "maxSize": 500,
"timeout": "3s", "timeout": "3s",
"maxAge": "7d" "maxAge": "7d"
} }
},
{
"name": "static",
"urls": [
"!/**/*api*"
],
"cacheConfig": {
"strategy": "performance",
"maxSize": 500,
"timeout": "3s",
"maxAge": "30d"
}
} }
], ],
"assetGroups": [ "assetGroups": [
{ {
"name": "app", "name": "app",
"installMode": "prefetch", "installMode": "lazy",
"updateMode": "prefetch", "updateMode": "lazy",
"resources": { "resources": {
"files": [ "files": [
"/favicon.ico", "/favicon.ico",
"/*.html", "/*.html",
"/*.css", "/*.scss",
"/*.js" "/*.ts"
], ],
"urls": [ "urls": [
"https://fonts.googleapis.com/**" "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