Skip to content
This repository was archived by the owner on Dec 13, 2019. It is now read-only.
This repository was archived by the owner on Dec 13, 2019. It is now read-only.

Excluding index.html from service worker by default #206

@luatnd

Description

@luatnd

What did you get as the error?

Clients don't see any change on new deployment in PWA mode because index.html was cached forever in service worker (cacheFirst/cacheOnly strategy I guessed!).

I accidentally forgot to remove /index.html entry in precache-manifest.*.js so now all my clients cannot receive any update.

I searched Quasar's issues but cannot found anyone has the same problem, did I do anything wrong?

What were you expecting?

Exclude index.html from precache, switch to networkFirst by default. so that on every deployment, clients can see the changes.

What steps did you take, to get the error?

  1. Deploy web page v1.0.0 in PWA mode
  2. Modify something
  3. Do second deployment v1.0.1 in PWA mode
  4. Refresh the webpage --> No change was made, the client can still see the v1.0.0

Env

 Build mode........ pwa
 Quasar theme...... mat
 Quasar CLI........ v0.17.20
 Quasar Framework.. v0.17.17
 Debugging......... no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions