diff --git a/ngsw-config.json b/ngsw-config.json index 607ab33..3fd1e0a 100644 --- a/ngsw-config.json +++ b/ngsw-config.json @@ -1,6 +1,19 @@ { "$schema": "./node_modules/@angular/service-worker/config/schema.json", "index": "/index.html", + "dataGroups": [ + { + "name": "api", + "urls": [ + "/api" + ], + "cacheConfig": { + "maxSize": 0, + "maxAge": "0u", + "strategy": "freshness" + } + } + ], "assetGroups": [ { "name": "app", @@ -27,4 +40,4 @@ } } ] -} +} \ No newline at end of file