diff --git a/wp-offline-shell/lib/service-worker.js b/wp-offline-shell/lib/service-worker.js index fd73dc2..15e8e07 100644 --- a/wp-offline-shell/lib/service-worker.js +++ b/wp-offline-shell/lib/service-worker.js @@ -18,7 +18,7 @@ // Name of the cache the plugin will use cacheName: storageKey, // Method to cleanse a URL before comparing and caching - normalizeAndAnonymize: function(request) { + ignoreSearch: function(request) { var url = new URL(request.url); if (url.origin !== location.origin) { return request.url; @@ -101,7 +101,7 @@ onFetch: function(event) { var request = event.request; - var url = this.normalizeAndAnonymize(request); + var url = this.ignoreSearch(request); if (!this.shouldBeHandled(request.method, url)) { return; }