HTML/CSSAdvanced#storage#pwa

What is the Cache API and how does it relate to Service Workers?

The Cache API lets JavaScript store request/response pairs for offline access, typically used inside a Service Worker to implement offline-first strategies like cache-first or network-first for PWAs.

Example
caches.open('v1').then(cache => {
  cache.addAll(['/index.html', '/styles.css']);
});

Related Questions

1
HTML/CSSIntermediate#css#specificity

What is CSS specificity and how is it calculated?

Open
2
HTML/CSSBeginner#css#box-model

What is the CSS box model?

Open
3
HTML/CSSBeginner#css#box-model

What is the difference between margin and padding?

Open