From bf0e9c27cb0499309f15b0a4b05e7d27b054a15d Mon Sep 17 00:00:00 2001 From: Luke Weiler Date: Sat, 1 Jan 2022 15:51:00 -0500 Subject: [PATCH] Added google analytics to no cache list (#2237) --- static/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));