Skip to content

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Sep 17, 2025

Purpose

Some users reported that the app was giving a blank page, it seems to happens often after a release.
It could be due to the fact that the service worker is caching the index.html file and not updating it properly after a new release.

⚗️ We didn't succeeded to reproduce this bug though.

Proposal

We remove the index from the cache first strategy to avoid this kind of issue. We set as well the default handler with the "StaleWhileRevalidate" strategy to force the cache to be updated in the background.

@AntoLC AntoLC self-assigned this Sep 17, 2025
@AntoLC AntoLC added bug Something isn't working SW Service worker experiment labels Sep 17, 2025
Copy link

github-actions bot commented Sep 17, 2025

Size Change: -24 B (0%)

Total Size: 3.65 MB

Filename Size Change
apps/impress/out/_next/static/dde737fb/_buildManifest.js 0 B -863 B (removed) 🏆
apps/impress/out/_next/static/09ffb6b4/_buildManifest.js 863 B +863 B (new file) 🆕

compressed-size-action

@AntoLC AntoLC force-pushed the refacto/sw-change-strategy branch from 3f21299 to 7963d49 Compare September 17, 2025 08:29
@AntoLC AntoLC requested a review from lunika September 17, 2025 08:30
Some users reported that the app was giving a
blank page, it seems to happens often after a
release. It could be due to the fact that
the service worker is caching the index.html
file and not updating it properly after a new release.
We remove the index from the cache first strategy
to avoid this kind of issue. We set as well
the default handler with the "StaleWhileRevalidate"
strategy to force the cache to be updated in
the background.
@AntoLC AntoLC force-pushed the refacto/sw-change-strategy branch from 7963d49 to 2dc1e07 Compare September 18, 2025 08:41
Some tests were getting very flaky due to previous
tests updates. This should fix it.
@AntoLC AntoLC merged commit e4aa85b into main Sep 18, 2025
21 of 22 checks passed
@AntoLC AntoLC deleted the refacto/sw-change-strategy branch September 18, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working experiment SW Service worker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants