sw: static-assets cache

This commit is contained in:
fly_mc 2024-11-19 22:41:29 +08:00
parent f27d2640dd
commit 8c65e9052f

View file

@ -13,7 +13,7 @@ import { swLang } from '@/scripts/lang.js';
import * as swos from '@/scripts/operations.js';
const STATIC_CACHE_NAME = `misskey-static-${_VERSION_}`;
const PATHS_TO_CACHE = ['/assets/', '/emoji/', '/twemoji/', '/fluent-emoji/', '/vite/'];
const PATHS_TO_CACHE = ['/assets/', '/static-assets/', '/emoji/', '/twemoji/', '/fluent-emoji/', '/vite/'];
async function cacheWithFallback(cache, paths) {
for (const path of paths) {