diff --git a/pwa/src/service-worker/utils.js b/pwa/src/service-worker/utils.js index 490a1b51f..3e27b00b8 100644 --- a/pwa/src/service-worker/utils.js +++ b/pwa/src/service-worker/utils.js @@ -44,7 +44,7 @@ export function urlMeetsDefaultCachingCriteria(url) { // Don't cache if url matches filter in pattern list from d2.config.js const urlMatchesFilter = URL_FILTER_PATTERNS.some(pattern => - new RegExp(pattern).test(url.pathname) + new RegExp(pattern).test(url.href) ) if (urlMatchesFilter) { return false