Skip to content

Commit

Permalink
Cache workers properly
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv committed Mar 22, 2024
1 parent 07592cd commit 4b7c575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ importScripts(
workbox.routing.registerRoute(
({ url }) =>
url.hostname == "telegram.tools" &&
(url.pathname.startsWith("/fonts/") || url.pathname.startsWith("/MTKruto")),
(url.pathname.startsWith("/fonts/") || url.pathname.endsWith("/worker.js")),
new workbox.strategies.CacheFirst(),
);

0 comments on commit 4b7c575

Please sign in to comment.