From 4c2f7828bc83e8f7fb02568389daa44c501da120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Thu, 22 Aug 2019 13:44:34 +0200 Subject: [PATCH] Exclude urls /rest and /apps from service worker caching. --- client/ngsw-config.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/ngsw-config.json b/client/ngsw-config.json index 1b0fde81f..ff033e355 100644 --- a/client/ngsw-config.json +++ b/client/ngsw-config.json @@ -25,5 +25,16 @@ ] } } + ], + "dataGroups": [ + { + "name": "api", + "urls": ["/rest/*", "/apps/*"], + "cacheConfig": { + "maxSize": 0, + "maxAge": "0u", + "strategy": "freshness" + } + } ] }