From 9a8f8a99aca3ddfdef5f9cbd400f7e0410190451 Mon Sep 17 00:00:00 2001 From: _Bastler Date: Mon, 4 Oct 2021 14:37:37 +0200 Subject: [PATCH] fix pwa --- ngsw-config.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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