Skip to content

Conversation

@argilo
Copy link

@argilo argilo commented Oct 15, 2024

In #341 I made service-worker.js static, but I realized after the fact that this will likely break PWA updating, because devices check for updates by looking for changes in manifest.json or service-worker.js.

Here I've switched back to a templated service-worker.js, which is generated from service-worker.template.js.

Additionally, I realized that there wasn't match point having the now-static app.js pull the version information from index.html and dump it back in, so I moved that information directly into index.html.

@TheSkorm TheSkorm merged commit 50c56ac into projecthorus:testing Oct 17, 2024
@argilo argilo deleted the fix-pwa-caching branch October 17, 2024 05:34
@argilo
Copy link
Author

argilo commented Oct 17, 2024

It looks like PWA updates are working now. I had testing.v2.sondehub.org installed as a PWA on my phone, and it updated today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants