Prerequisites for service workers are:
- Because service workers are so powerful (almost like a network proxy) to avoid certain attacks, they're only available for domains running on HTTPS. However, they run fine on localhost, as well.
- They heavily depend on promises, which we've already covered in depth in Chapter 4, Asynchronous Programming.