Skip to content

fix: add version to cacheId + add package.json to SW caching #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

noraeb
Copy link

@noraeb noraeb commented May 22, 2025

  • The cacheId is now dynamically set to include the package version, in order to create a unique cache for each release.
  • Added a new caching rule for package.json.proxy.js. This ensures the app always fetches the latest version, so it can clear plugins from localStorage if the version changes.
  • clientsClaim was added to ensure the new service worker takes control of all pages as soon as it's activated.

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