[PR #5928] 🐛 Fix Service Worker: New hash every build #6216

Closed
opened 2026-02-28 21:25:24 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/5928

State: closed
Merged: Yes


Introduction of the plugin service worker is impacting the app to recognize new versions. It was generating using [hash] syntax for vite. But hash is the checksum of the file. Since this file won't change and it's part of the service worker, it's keeping the same hash but we have changes on the "rest" of the sw.

This PR forces a new hash every build to ensure that any changes to the SW will be catch by the browser.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/5928 **State:** closed **Merged:** Yes --- Introduction of the plugin service worker is impacting the app to recognize new versions. It was generating using `[hash]` syntax for vite. But hash is the checksum of the file. Since this file won't change and it's part of the service worker, it's keeping the same hash but we have changes on the "rest" of the sw. This PR forces a new hash every build to ensure that any changes to the SW will be catch by the browser.
GiteaMirror added the pull-request label 2026-02-28 21:25:24 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6216