Files
eranos/public
Alex Gleason 5b8d2d5c06 Evict stale precache service worker from old Agora deployment
A previous version of Agora deployed at agora.spot shipped a precaching
service worker that is still controlling returning browsers and serving
them stale HTML/JS — they never see new deploys.

The fix has three parts:

1. public/sw.js — on activate, delete every Cache Storage entry the old
   SW left behind. This SW has no fetch handler, so once it takes over
   nothing re-populates the cache.

2. src/main.tsx — register /sw.js unconditionally on every web page load.
   Previously only usePushNotifications registered it, which meant users
   who never visited NotificationSettings stayed pinned to the old SW
   forever. Native (Capacitor) skips this — there is no stale SW on the
   filesystem origin.

3. .gitlab-ci.yml — the deploy-web rsync was excluding sw.js from the
   first pass and never re-adding it to the second pass, so deploys
   silently never updated sw.js. Now it ships in the second pass
   alongside index.html (after hashed assets land).
2026-05-17 13:48:24 -05:00
..
2026-02-23 17:54:54 -06:00
2026-05-15 19:37:23 -07:00
2026-05-11 14:01:54 -07:00
2026-05-15 19:37:23 -07:00
2026-05-15 19:37:23 -07:00
2026-05-15 19:37:23 -07:00
2026-05-15 19:37:23 -07:00
2026-05-15 19:37:23 -07:00
2026-04-17 12:10:11 +05:45
2026-05-15 19:37:23 -07:00
2026-03-18 03:36:31 -05:00
2026-04-17 12:10:11 +05:45