• production-sw.js

  • /* global importScripts, onFetch, onInstall, onActivate, mapping */
  • The default mapping contains the map for abstract resources to their concrete counterparts.

  • All the functionality is in injector.js here we only wire the listeners.

    self.onfetch = onFetch;
    self.oninstall = onInstall;
    self.onactivate = onActivate;

Has it been useful?

Tell us what you think of this recipe by leaving a comment!