From 8400738fc2d803ed7bb6170660c3b0362649498d Mon Sep 17 00:00:00 2001 From: shoshannaTM Date: Mon, 8 Dec 2025 14:08:18 -0800 Subject: [PATCH] exclude map tiles from cache --- src/ngsw-config.json | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/ngsw-config.json b/src/ngsw-config.json index 9e4f0ad2..37f99a1d 100644 --- a/src/ngsw-config.json +++ b/src/ngsw-config.json @@ -2,7 +2,7 @@ "index": "/index.html", "assetGroups": [ { - "name": "Lazztech Noun", + "name": "Lazztech Hub", "installMode": "prefetch", "resources": { "files": [ @@ -25,19 +25,16 @@ } } ], - "dataGroups": [ + "dataGroups": [ { - "name": "user-images", + "name": "tiles-bypass", "urls": [ - "https://lazztech-hub-service-z84zo.ondigitalocean.app/file/**", - "https://lazztech-hub-service-z84zo.ondigitalocean.app/avatars/**" - ], + "/protomaps/**" + ], "cacheConfig": { - "strategy": "performance", - "maxSize": 200, - "maxAge": "7d", - "timeout": "5s", - "cacheOpaqueResponses": true + "strategy": "freshness", + "maxSize": 0, + "maxAge": "0u" } } ]