| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-03-10 13:39:16 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-03-10 13:39:16 UTC |
| parent | 5c041f9c7410b60d60ed0b90442ff2a4d97d5769 |
| borogove/persistence/MediaStoreCache.js | +1 | -1 |
diff --git a/borogove/persistence/MediaStoreCache.js b/borogove/persistence/MediaStoreCache.js index c997bc0..bc25fe3 100644 --- a/borogove/persistence/MediaStoreCache.js +++ b/borogove/persistence/MediaStoreCache.js @@ -48,7 +48,7 @@ export default (cacheName) => { addEventListener("fetch", (event) => { const url = new URL(event.request.url); - if (url.pathname.startsWith("/.well-known/ni/")) { + if (url.origin === self.location.origin && url.pathname.startsWith("/.well-known/ni/")) { event.respondWith(waitForMedia(url.pathname)); } });