server : remove the built-in UI's service worker when the UI is not served (#29565)
With --path or --no-ui, /sw.js returned 404, and a 404 does not remove a service worker, so browsers kept showing the cached built-in UI. Serve a worker that unregisters itself, clears its caches and reloads open tabs. A sw.js in the --path folder is still served first. Assisted-by: Claude Opus 5.5
E
Emanuil Rusev committed
ba0ba54d93b25faf1e149f4ccedd3e9d84798563
Parent: 00af635
Committed by GitHub <noreply@github.com>
on 9/29/2026, 3:48:17 PM