1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-24 07:06:18 +09:00

Disable media cache on service worker (#19471)

This commit is contained in:
Yamagishi Kazutoshi 2022-10-27 01:21:36 +09:00 committed by GitHub
parent 31e23269f9
commit eebbc5439a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ registerRoute(
); );
registerRoute( registerRoute(
({ request }) => ['audio', 'image', 'track', 'video'].includes(request.destination), ({ request }) => request.destination === 'image',
new CacheFirst({ new CacheFirst({
cacheName: `m${CACHE_NAME_PREFIX}media`, cacheName: `m${CACHE_NAME_PREFIX}media`,
plugins: [ plugins: [