This commit is contained in:
LionTion committed 2026-09-10 18:19:41 +02:00
1 parent be50463157
commit 78b1058276
2 files changed
+10 -2

No files matched your search

+9 -1
View File
@@ -28,7 +28,15 @@ const serwist = new Serwist({
skipWaiting: true,
clientsClaim: true,
navigationPreload: true,
runtimeCaching: defaultCache,
runtimeCaching: [
...defaultCache,
{
matcher: ({ url }) => url.hostname.includes('tile.openstreetmap.org') || url.pathname.includes('/tiles/'),
handler: new CacheFirst({
cacheName: 'excalibur-offline-map-tiles-v1',
}),
},
],
fallbacks: {
entries: [
{