Split service worker image cache into multiple

This commit is contained in:
schroda
2026-01-18 16:34:20 +01:00
parent 25b8c85ef2
commit 7b13c1dcc1
3 changed files with 99 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ export const ImagesSettings = () => {
const clearCache = async () => {
try {
await Promise.all([triggerClearServerCache(), ImageCache.clear()]);
await Promise.all([triggerClearServerCache(), ImageCache.clearAll()]);
makeToast(t`Cleared the cache`, 'success');
} catch (e) {
makeToast(t`Could not clear the cache`, 'error', getErrorMessage(e));