Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

service-worker.js 1.0 KiB

3 anos atrás
12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * Welcome to your Workbox-powered service worker!
  3. *
  4. * You'll need to register this file in your web app and you should
  5. * disable HTTP caching for this file too.
  6. * See https://goo.gl/nhQhGp
  7. *
  8. * The rest of the code is auto-generated. Please don't update this file
  9. * directly; instead, make changes to your Workbox build configuration
  10. * and re-run your build process.
  11. * See https://goo.gl/2aRDsh
  12. */
  13. importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
  14. importScripts(
  15. "/precache-manifest.f627d7ce18b149e6ee7f39f396a42d35.js"
  16. );
  17. workbox.clientsClaim();
  18. /**
  19. * The workboxSW.precacheAndRoute() method efficiently caches and responds to
  20. * requests for URLs in the manifest.
  21. * See https://goo.gl/S9QRab
  22. */
  23. self.__precacheManifest = [].concat(self.__precacheManifest || []);
  24. workbox.precaching.suppressWarnings();
  25. workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
  26. workbox.routing.registerNavigationRoute("/index.html", {
  27. blacklist: [/^\/_/,/\/[^/]+\.[^/]+$/],
  28. });