A service worker file is a script that your browser runs in the background, separate from a web page, opening the door to features that don’t need a web page or user interaction . Today, it already includes features like push notifications and background sync.