Interview practice question
Users are stuck on an old version because of a service worker
Frontend Engineering · Async JavaScript and the Browser · Experienced
After a deployment, many users still see the old version of your app for days because of the service worker. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Old SW serving cached assets; new one waiting.
- Ensure SW script not cached long (Cache-Control).
- Update flow: detect waiting worker, prompt reload, skipWaiting.
- Versioned caches cleaned.
- Kill-switch worker if broken.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.