title: Caching entire folder in service worker
body: <p>I have a build folder which is generated via webpack, any idea how i can cache the entire folder, i tried the following but to no avail</p>
  
  <pre><code>self.addEventListener('install', e =&gt; {
      e.waitUntil(
          caches.open('notes').then(cache =&gt; {
              return cache.addAll([
              './build/*',
          ])
          .then(() =&gt; self.skipWaiting());
      }))
  });
  
  self.addEventListener('activate',  event =&gt; {
      event.waitUntil(self.clients.claim());
  });
  
  self.addEventListener('fetch', event =&gt; {
      event.respondWith(
          caches.match(event.request).then(response =&gt; {
              return response || fetch(event.request);
          })
      );
  });
  </code></pre>
  
  <p>Any help on how i can cache the entire build folders' file. I am not using the webpack plugin, just written my on SW.</p>