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

    Refresh PWA after code update

    Starter Kits
    1
    1
    1216
    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.
    • B
      badrday last edited by badrday

      Hi,
      When I update my Quasar PWA application code on the server, the server worker seems doing its job of getting the new updates :
      0_1542068039565_2d7b77d7-7da6-4a34-991c-6d381813576e-image.png

      But the new files are only uploaded in a -temp cache and the PWA app is not updated:

      0_1542068525166_154fd333-8a6a-4bf0-9ded-256d28546163-image.png

      I’ve tried to call window.location.reload(true) but this didn’t work.
      The only solution I have is to clear the cache and load the app again.

      What is the right way to refresh the Quasar PWA app after an update?

      Thank you!

      Update:------------------------------------
      skipWaiting: true seems to solve the problem
      workboxOptions: {
      skipWaiting: true
      }

      I’m trying to understand more:
      https://developers.google.com/web/fundamentals/primers/service-workers/lifecycle

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