diff --git a/ngsw-config.json b/ngsw-config.json index f8bf2102ea5690789e37f553f304f8970bc719ae..e5b82fb2a06d7f3e43ca5fcfefcaf93972d9664c 100644 --- a/ngsw-config.json +++ b/ngsw-config.json @@ -6,13 +6,7 @@ "name": "app", "installMode": "prefetch", "resources": { - "files": [ - "/favicon.ico", - "/index.html", - "/manifest.webmanifest", - "/*.css", - "/*.js" - ] + "files": ["/favicon.ico", "/index.html", "/manifest.webmanifest", "/*.css", "/*.js"] } }, { @@ -20,10 +14,19 @@ "installMode": "lazy", "updateMode": "prefetch", "resources": { - "files": [ - "/assets/**", - "/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)" - ] + "files": ["/assets/**", "/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"] + } + } + ], + "dataGroups": [ + { + "name": "ghost", + "urls": ["/blog/**"], + "cacheConfig": { + "strategy": "freshness", + "maxSize": 10000, + "maxAge": "12h", + "timeout": "5s" } } ]