all repos — NoPaste @ 2af3d70d9e79e9b372bd9034cee4521992f95d15

Resurrected - The PussTheCat.org fork of NoPaste

Ignore search when caching pages
Boris Kubiak kubiakboris@gmail.com
Fri, 21 Aug 2020 16:45:08 +0200
commit

2af3d70d9e79e9b372bd9034cee4521992f95d15

parent

64d654c3e25c46c44c1eedb9dde9eb326f9dc473

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M sw.jssw.js

@@ -67,7 +67,7 @@ if (!event.request.url.startsWith(self.location.origin) && !event.request.url.startsWith('https://cdn.jsdelivr.net')) {

return; } event.respondWith( - caches.match(event.request).then((cachedResponse) => { + caches.match(event.request, { ignoreSearch: true }).then((cachedResponse) => { if (cachedResponse) { return cachedResponse; }