Root cause of 'the change never appears': pages are statically prerendered, so Next replied with Cache-Control: s-maxage=31536000. The browser kept the old HTML for up to a year, which is why editing sw.js and the footer version changed nothing for an existing visitor. next.config now adds, for any request whose Accept includes text/html: Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate Static assets are untouched (hashed files under _next/static keep their immutable caching). Bumped version.json and the SW VERSION to 2026.10.24.2. Verified with curl (Accept: text/html) that /, /stops, /routes, /about and /credits all return no-store, while images still return public, max-age=0; and in the browser an ordinary reload returns the three-tab /stops page with the v2026.10.24.2 footer badge.
Frontend — Next.js App Router
npm install
npm run dev
Talks to backend purely via REST through nginx (/api/*, /files/*).