Bulk Add All (*.js) or (*.css) files to service worker cache on install

Viewed 2131

If I have a service worker registered with the doc root ( / ) as its scope, And my Document Layout is like so:

  • Doc-Root
    • Includes
      • JS
        • PHP/JS /HTML Files
      • CSS
        • PHP/CSS Files
      • Typography

How Do I Add All JS Only/CSS Only files to the service worker cache On Install and exclude other extensions Under each Directory?

1 Answers
Related