1
HTML/CSSIntermediate#css#specificity
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.
caches.open('v1').then(cache => {
cache.addAll(['/index.html', '/styles.css']);
});