Service Worker
A service worker is a JavaScript script that a browser runs in the background, separate from a web page, enabling features like offline caching, push notifications, and network request interception that don't require a web page or user interaction to be active.
16 resources across 2 libraries
Glossary Terms(8)
Progressive Web App (PWA)
A Progressive Web App (PWA) is a website built with modern web APIs to behave like a native app — installable, capable of offline use, and able to send push no…
Service Worker
A service worker is a JavaScript script that a browser runs in the background, separate from a web page, enabling features like offline caching, push notificat…
SSL/TLS Certificate
An SSL/TLS certificate is a digital file that cryptographically verifies a website's identity and enables encrypted HTTPS connections between a server and its…
Web Push Notifications
Web push notifications are messages that a website can send to a user's device even when the browser or site isn't open, delivered via the browser's Push API a…
IndexedDB
IndexedDB is a low-level, asynchronous browser API for storing significant amounts of structured data — including files and blobs — on the client, with support…
Web Worker
A Web Worker is a browser API that runs JavaScript code on a background thread, separate from the main UI thread, so CPU-intensive tasks don't block page rende…
Push API (Web)
The Push API is a W3C web standard that lets a browser receive messages pushed from a server even when the corresponding web page is not open, by delivering th…
Web Bluetooth API
The Web Bluetooth API is a browser API that lets web pages discover and communicate directly with nearby Bluetooth Low Energy (BLE) devices, after explicit use…
Interview Questions(8)
What is a Service Worker?
A service worker is a background JavaScript script the browser runs separately from the page, letting it intercept network requests, cache responses, and enabl…
What Are Service Worker Caching Strategies?
A service worker caching strategy is the policy a service worker’s `fetch` event handler applies to decide whether a request is served from the Cache API, the…
What Is a Progressive Web App (PWA)?
A Progressive Web App is a website built with a web app manifest and a service worker so it can be installed to a device’s home screen, launch in its own windo…
What Is Offline-First Architecture?
Offline-first architecture designs an app to treat local storage as the primary source of truth and network connectivity as an enhancement, so the UI stays ful…
What Is the Background Sync API?
The Background Sync API lets a web app register a deferred task with a Service Worker so that a failed or offline action, like submitting a form, automatically…
How Do Web Push Notifications Work?
Web push notifications work by having the browser generate a unique subscription endpoint tied to a push service, which the app’s server later calls with an en…
What Is the Cache API and How Does It Differ From HTTP Caching?
The Cache API is a programmable, script-controlled storage mechanism for Request/Response pairs that a Service Worker uses to explicitly decide what to store a…
How Does Browser Storage Quota Management Work?
Browsers grant each origin a share of disk space for localStorage, IndexedDB, and Cache Storage that is bounded by a quota the browser computes from total free…