diff --git a/ngsw-config.json b/ngsw-config.json index be36d5d04f5556769f48f3e5c91040da62b86156..72c13e02dba8b5f3d625755c0797d9ee5c03ad8f 100644 --- a/ngsw-config.json +++ b/ngsw-config.json @@ -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/**"