Skip to content

Instantly share code, notes, and snippets.

@MrPeker
Created January 27, 2019 19:41
Show Gist options
  • Save MrPeker/e218c6fd517c2b3c94a1286b22092c9f to your computer and use it in GitHub Desktop.
Save MrPeker/e218c6fd517c2b3c94a1286b22092c9f to your computer and use it in GitHub Desktop.
const handler = ({url, event}) => {
return new Response(`Custom handler response.`);
};
workbox.routing.registerRoute(match, handler);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment