mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 17:53:41 +01:00
Disable media cache on service worker (#19471)
This commit is contained in:
parent
31e23269f9
commit
eebbc5439a
1 changed files with 1 additions and 1 deletions
|
@ -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: [
|
||||||
|
|
Loading…
Reference in a new issue