···423423// Static files (production build)
424424const distPath = path.join(PROJECT_ROOT, 'dist');
425425426426-// Service worker must never be cached by the browser — ensures updates propagate immediately
426426+// Service worker must never be cached — Clear-Site-Data nukes Firefox's HTTP cache
427427+// so stale HTML responses can't prevent SW updates from propagating
427428app.get('/sw.js', (_req, res) => {
428429 res.set('Cache-Control', 'no-cache, no-store, must-revalidate');
430430+ res.set('Clear-Site-Data', '"cache"');
429431 res.sendFile(path.join(distPath, 'sw.js'));
430432});
431433