AI Workshop: learn to build apps with AI →
PWA & Service Workers: Unregister service workers in Safari

Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.


You can easily unregister a service worker in Chrome, from the Application tab in the DevTools, but in Safari on macOS there’s no button to do so.

To unregister in Safari, run this in the browser console:

navigator.serviceWorker.getRegistrations()
  .then(registrations => {
    registrations.forEach(r => r.unregister())
  })

Lessons in this unit:

0: Introduction
1: Progressive Web Apps
2: Service Workers
3: Cache API
4: Making a website work offline
5: Notifications API
6: Push API
7: ▶︎ Unregister service workers in Safari