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 arsnova/arsnova-lite!231
parents 85f6d3d2 5585ccda
No related merge requests found
......@@ -4,26 +4,38 @@
[
{
"name": "api",
"urls": ["/**"],
"urls": ["/api/**"],
"cacheConfig": {
"strategy": "freshness",
"maxSize": 500,
"timeout": "3s",
"maxAge": "7d"
}
},
{
"name": "static",
"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