[Vuejs]-How to cache spa.html only with networkfirst or how to configure offline mod with ssr

0👍

Try this:

workbox.routing.registerRoute(
      new RegExp('/spa.html'),
      new workbox.strategies.NetworkFirst()
);

Refer : https://developers.google.com/web/tools/workbox/modules/workbox-strategies#network_first_network_falling_back_to_cache

Leave a comment