Check host only
This commit is contained in:
parent
85ae337fb8
commit
1d56c47322
@ -31,7 +31,7 @@ registerRoute(({ request, url }) => url.origin === self.location.origin && stati
|
|||||||
|
|
||||||
// External media domains which have unique urls (never changing content) and can be cached forever
|
// External media domains which have unique urls (never changing content) and can be cached forever
|
||||||
const externalMediaHosts = ["void.cat", "nostr.build", "imgur.com", "i.imgur.com", "pbs.twimg.com", "i.ibb.co"];
|
const externalMediaHosts = ["void.cat", "nostr.build", "imgur.com", "i.imgur.com", "pbs.twimg.com", "i.ibb.co"];
|
||||||
registerRoute(({ request, url }) => externalMediaHosts.includes(url.host) && staticTypes.includes(request.destination),
|
registerRoute(({ url }) => externalMediaHosts.includes(url.host),
|
||||||
new CacheFirst({
|
new CacheFirst({
|
||||||
cacheName: "ext-content-hosts"
|
cacheName: "ext-content-hosts"
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user