mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 05:17:51 +08:00
Added google analytics to no cache list (#2237)
This commit is contained in:
parent
9980e2129f
commit
bf0e9c27cb
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue