Skip to content

Commit

Permalink
fix(pwa): ignore cactus requests
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Nov 25, 2024
1 parent e17d0ea commit c39dc86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ oninstall = (event) => {
};

onfetch = (event) => {
if (event.request.url.startsWith("https://matrix.cactus.chat")) {
return;
}

console.log("Fetching", event.request.url);
event.respondWith(caches.open(cacheName).then((cache) => {
return cache.match(event.request).then((cachedResponse) => {
Expand Down

0 comments on commit c39dc86

Please sign in to comment.