feat: remove cozy-reader in ignored cache names for deletion
This commit is contained in:
parent
3c432b3ed4
commit
0f5ac7571a
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ const cacheName = `${__prefix ?? 'app'}-v${__version ?? '000'}`
|
||||||
const forceLogging = true
|
const forceLogging = true
|
||||||
|
|
||||||
const cleanOldCaches = async () => {
|
const cleanOldCaches = async () => {
|
||||||
const allowCacheNames = ['cozy-reader', cacheName]
|
const allowCacheNames = [cacheName]
|
||||||
const allCaches = await caches.keys()
|
const allCaches = await caches.keys()
|
||||||
allCaches.forEach((key) => {
|
allCaches.forEach((key) => {
|
||||||
if (!allowCacheNames.includes(key)) {
|
if (!allowCacheNames.includes(key)) {
|
||||||
|
|
Loading…
Reference in a new issue