Finetunes the ngsw config

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