I am new to angular caching, and while navigating the docs I found that we may use service worker which uses localStorage, and we could use directly the localStorage without the service worker
What is a service worker, and in what scenarios we should use it or avoid using it?
What are the advantages of using service workers besides offline capabilities?
Thanks!