Navigation

    Quasar Framework

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Using InjectManifest in PWA

    Help
    1
    1
    56
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tamirvs last edited by

      Hi,
      I’m trying to create a PWA app using InjectManifest.
      My service-worker.js has this code (as seen in many examples):

      precacheAndRoute(self.__WB_MANIFEST);
      
      registerRoute(
        new NavigationRoute(createHandlerBoundToURL('/index.html'))
      );
      

      But I’m getting an error:

      Uncaught non-precached-url: createHandlerBoundToURL(’/index.html’) was called, but that URL is not precached. Please pass in a URL that is precached instead.

      How can I get index.html to be precached?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post