self.addEventListener('fetch', event => {
  event.respondWith(
      caches.match(event.request, {ignoreSearch: true}).then(response => {
        return response || fetch(event.request);
      }))
});
