service-worker.js 1.0 KB

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/4.3.1/workbox-sw.js");
  14. importScripts(
  15. "precache-manifest.3e84c0d5bd81102e11d99c948ec90837.js"
  16. );
  17. workbox.core.setCacheNameDetails({prefix: "apidoc"});
  18. self.addEventListener('message', (event) => {
  19. if (event.data && event.data.type === 'SKIP_WAITING') {
  20. self.skipWaiting();
  21. }
  22. });
  23. /**
  24. * The workboxSW.precacheAndRoute() method efficiently caches and responds to
  25. * requests for URLs in the manifest.
  26. * See https://goo.gl/S9QRab
  27. */
  28. self.__precacheManifest = [].concat(self.__precacheManifest || []);
  29. workbox.precaching.precacheAndRoute(self.__precacheManifest, {});