CacheStorage.open() - Web APIs | MDN

PHOTO EMBED

Fri Jun 10 2022 19:07:25 GMT+0000 (Coordinated Universal Time)

Saved by @Anzelmo

self.addEventListener('install', function(event) {
  event.waitUntil(
    caches.open('v1').then(function(cache) {
      return cache.addAll([
        '/sw-test/',
        '/sw-test/index.html',
        '/sw-test/style.css',
        '/sw-test/app.js',
        '/sw-test/image-list.js',
        '/sw-test/star-wars-logo.jpg',
        '/sw-test/gallery/bountyHunters.jpg',
        '/sw-test/gallery/myLittleVader.jpg',
        '/sw-test/gallery/snowTroopers.jpg'
      ]);
    })
  );
content_copyCOPY

https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/open