ui: optimize service worker cache load

This commit is contained in:
undefined committed 2025-10-27 16:35:23 +08:00
1 parent 2e9e93c9e1
commit 9226b26fa7
8 files changed
+34 -23

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ self.addEventListener('notificationclick', (event) => {
}));
});
const PRECACHE = `precache-${process.env.VERSION}`;
const PRECACHE = 'ui-resources-cache';
const DO_NOT_PRECACHE = ['.worker.js', 'fonts'];
function shouldCachePath(path: string) {