diff --git a/ngsw-config.json b/ngsw-config.json index 4e9dd0a..57dac9f 100644 --- a/ngsw-config.json +++ b/ngsw-config.json @@ -14,17 +14,29 @@ "/*.js" ] } - }, { + }, + { "name": "assets", "installMode": "lazy", "updateMode": "prefetch", "resources": { "files": [ "/assets/**", - "/data/**", "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" ] } } + ], + "dataGroups": [ + { + "urls": [ + "/data/**/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" + ], + "cacheConfig": { + "maxSize": 250, + "maxAge": "7d" + }, + "name": "userDefinedResources" + } ] }