Browse Source

Disable media cache on service worker (#19471)

closed-social-glitch-2
Yamagishi Kazutoshi 2 years ago
committed by GitHub
parent
commit
eebbc5439a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/service_worker/entry.js

+ 1
- 1
app/javascript/mastodon/service_worker/entry.js 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: [

Loading…
Cancel
Save