From 4b7c5757c1e1247993f416678571c1a9413548ce Mon Sep 17 00:00:00 2001 From: Roj Date: Fri, 22 Mar 2024 17:47:37 +0300 Subject: [PATCH] Cache workers properly --- static/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/sw.js b/static/sw.js index 4e84346..41ba8f2 100644 --- a/static/sw.js +++ b/static/sw.js @@ -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(), );