Skip to content

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Oct 9, 2025

Purpose

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.
https://web.dev/articles/service-worker-lifecycle#avoid-url-change

We improve the update handling by a more usual pattern.

@AntoLC AntoLC self-assigned this Oct 9, 2025
@AntoLC AntoLC added frontend SW Service worker labels Oct 9, 2025
@AntoLC AntoLC force-pushed the enhance/sw-register branch 2 times, most recently from d1ea70b to b11366f Compare October 9, 2025 13:41
@AntoLC AntoLC requested a review from Ovgodd October 9, 2025 13:43
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.
@AntoLC AntoLC force-pushed the enhance/sw-register branch from b11366f to af01c6e Compare October 9, 2025 19:34
@github-actions
Copy link

github-actions bot commented Oct 9, 2025

Size Change: -10 B (0%)

Total Size: 3.66 MB

Filename Size Change
apps/impress/out/_next/static/891bb92b/_buildManifest.js 0 B -882 B (removed) 🏆
apps/impress/out/_next/static/cf942bbe/_buildManifest.js 882 B +882 B (new file) 🆕

compressed-size-action

@AntoLC AntoLC merged commit af01c6e into main Oct 9, 2025
21 of 22 checks passed
@AntoLC AntoLC deleted the enhance/sw-register branch October 9, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend SW Service worker

3 participants