No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

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

    Custom Service Worker without requesting google

    Help
    2
    3
    321
    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.
    • J
      jf last edited by

      Hi everyone

      I implemented a pwa following https://quasar.dev/quasar-cli/developing-pwa/configuring-pwa. Using the InjectManifest mode or the default mode, both make request to google servers. I want to avoid that since it lets google track my users.

      The generated service-worker.js file contains the following problematic line:

      importScripts("precache-manifest.870d42406272213b6d5be017dabe759a.js", "https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
      
      

      How can I serve these dependencies without using the CDN?

      Thx for your help 🙂

      1 Reply Last reply Reply Quote 1
      • J
        Jo last edited by

        There is a workbox option importWorkboxFrom. Look at the doc it may help you https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin

        1 Reply Last reply Reply Quote 0
        • J
          jf last edited by

          Yeah thx that solved it 🙂

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