JavaScript · Senior · Question 14 of 75

What can a Service Worker do?

Explanation

A Service Worker is a proxy between the page and the network with its own lifecycle (install, activate, fetch). PWAs are built on it: caching strategies (cache-first, network-first, stale-while-revalidate), push notifications, background sync. It works only over HTTPS and can't see the DOM.

Further reading

Problem with a question

JavaScript · Senior · question 14

Test yourself

Take the JavaScript · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz