Disable media cache on service worker (#19471)

lolsob-rspec
Yamagishi Kazutoshi 2022-10-27 01:21:36 +09:00 committed by GitHub
parent c84b4d4b9c
commit 9315d51940
1 changed files with 1 additions and 1 deletions

View File

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