Finetunes the ngsw config

parent 7746a692
Pipeline #25865 passed with stages
in 12 minutes and 34 seconds
......@@ -5,7 +5,7 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/assets" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/dist" />
<excludeFolder url="file://$MODULE_DIR$/src/assets/js/highslide" />
<excludeFolder url="file://$MODULE_DIR$/src/assets/js" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
......
......@@ -6,8 +6,8 @@
"installMode": "prefetch",
"resources": {
"files": [
"/assets/i18n/**",
"/index.html",
"/*.css",
"/*.js"
]
}
......@@ -18,48 +18,44 @@
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/js/**"
]
}
},
{
"name": "assets-deferred",
"resources": {
"urls": [
"/assets/fonts/**",
"/assets/i18n/**",
"/assets/images/**",
"/assets/js/**",
"/assets/serverEndpoint.json"
"/assets/images/**"
]
}
}
],
"dataGroups": [
{
"name": "styles",
"urls": [
"**/*.css"
],
"cacheConfig": {
"maxSize": 0,
"maxAge": "0u",
"strategy": "freshness"
}
},
{
"name": "api",
"name": "api-freshness",
"urls": [
"/api",
"/backend"
"/backend",
"https://polyfill.io/**"
],
"cacheConfig": {
"maxSize": 0,
"maxAge": "0u",
"strategy": "freshness"
"strategy": "freshness",
"maxSize": 100,
"maxAge": "3d",
"timeout": "10s"
}
},
{
"name": "polyfill.io",
"name": "api-performance",
"urls": [
"https://polyfill.io/**"
"/*.css"
],
"cacheConfig": {
"maxSize": 0,
"maxAge": "0u",
"strategy": "freshness"
"strategy": "performance",
"maxSize": 100,
"maxAge": "3d"
}
}
]
......
Markdown is supported
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