mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: optimize service worker cache load
This commit is contained in:
8 files changed
+34
-23
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user