Project A interview question

Please explain a use case for a Service Worker?