import * as recipes from ‘workbox-recipes’; import { precacheAndRoute } from ‘workbox-precaching’;

precacheAndRoute(self.__WB_MANIFEST);

recipes.pageCache(); recipes.googleFontsCache(); recipes.staticResourceCache(); recipes.imageCache(); recipes.offlineFallback();

  • 0
  • 3
  1. (for the offline fallback to work, you’ll need to set up precaching and include offline.html in the precache manifest, but that’s the only additional config needed)

    • 0
    • 0