diff --git a/static/sw.js b/static/sw.js index adaf08cb1..4b1f16507 100644 --- a/static/sw.js +++ b/static/sw.js @@ -13,7 +13,7 @@ self.addEventListener("install", (event) => { self.addEventListener("fetch", async (event) => { const host = new URL(event.request.url).host; if ( - ["localhost:5005", "api.monkeytype.com", "api.github.com"].includes(host) + ["localhost:5005", "api.monkeytype.com", "api.github.com", "www.google-analytics.com"].includes(host) ) { // if hostname is a non-static api, fetch request event.respondWith(fetch(event.request));