♻️(service-worker) improve SW registration and update handling

It is apparently a bad practice to add the version
number to the service worker file name.
This prevents the browser from properly updating
the service worker when a new version is available.

We improve the update handling by a more usual
pattern.
This commit is contained in:
Anthony LC
2025-10-09 15:41:11 +02:00
parent 8023720da3
commit af01c6e466
3 changed files with 9 additions and 8 deletions

View File

@@ -30,6 +30,7 @@ and this project adheres to
- ♿ add h1 for SR on 40X pages and remove alt texts #1438
- ♿ update labels and shared document icon accessibility #1442
- 🍱(frontend) Fonts GDPR compliants #1453
- ♻️(service-worker) improve SW registration and update handling #1473
### Fixed