title: Is there any way to cache all files of defined folder/path in service worker?
body: <p>In service worker, I can define array of resource those are being cached during service worker get started mentioned below:</p>
  
  <pre><code>self.addEventListener('install', event =&gt; {
      event.waitUntil(caches.open('static-${version}')
          .then(cache =&gt; cache.addAll([
              '/styles.css',
              '/script.js'
          ]))
      );
  });
  </code></pre>
  
  <p>How can I define a path/directory in service worker, so that instead of writing all files name, service worker pick all files from given path/directory and add all in cache?</p>