How to use the workbox-routing/Route.mjs.Route function in workbox-routing

To help you get started, we’ve selected a few workbox-routing examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github philipwalton / blog / assets / sw / routes / static-assets.js View on Github external
export const createStaticAssetsRoute = () => {
  return new Route(staticAssetsMatcher, staticAssetsStrategy);
};
github philipwalton / blog / assets / sw / precache.js View on Github external
export const createPrecacheRoute = () => {
  return new Route(precacheMatcher, precacheHandler);
};
github philipwalton / blog / assets / sw / routes / shell.js View on Github external
export const createShellRoute = () => {
  return new Route(shellMatcher, shellStrategy);
};
github philipwalton / blog / assets / sw / routes / pages.js View on Github external
export const createPagesRoute = () => {
  return new Route(pagesMatcher, pagesHandler);
};
github philipwalton / blog / assets / sw / routes / content.js View on Github external
export const createContentRoute = () => {
  return new Route(contentMatcher, contentStrategy);
};
github philipwalton / blog / assets / sw / routes / third-party-assets.js View on Github external
export const createThirdPartyAssetsRoute = () => {
  return new Route(thirdPartyAssetsMatcher, thirdPartyAssetsStrategy);
};

workbox-routing

A service worker helper library to route request URLs to handlers.

MIT
Latest version published 29 days ago

Package Health Score

97 / 100
Full package analysis