Service worker
A background script in the browser that can cache a site's files and serve it offline.
Definition
Service workers are a key part of progressive web apps (PWAs). Testers check offline behavior and that updates actually reach users instead of an old cached version.
In practice
After a release, users still see the old checkout because the service worker served cached files.
Learn it in context
Lessons that use this term.
Related terms
- CacheStored copies of data or files that make apps and websites load faster.
- Offline modeHow an app behaves without a connection: showing cached content, queuing actions, or explaining what's unavailable.
- Progressive web app (PWA)A website that can be installed like an app, open from the home screen and work offline.