From 0f5ac7571a5c6db6d7bbbe40beb9cc2bca3afe1d Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 5 Apr 2025 09:34:40 +0200 Subject: [PATCH] feat: remove cozy-reader in ignored cache names for deletion --- src/sw.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sw.mjs b/src/sw.mjs index 9290e6a..e8b8695 100644 --- a/src/sw.mjs +++ b/src/sw.mjs @@ -7,7 +7,7 @@ const cacheName = `${__prefix ?? 'app'}-v${__version ?? '000'}` const forceLogging = true const cleanOldCaches = async () => { - const allowCacheNames = ['cozy-reader', cacheName] + const allowCacheNames = [cacheName] const allCaches = await caches.keys() allCaches.forEach((key) => { if (!allowCacheNames.includes(key)) {