progressive web apps - How to resolve Dynamic URLs dependencies through Service worker? -


though familiar sw-precache , sw-toolbox libraries, still puzzle on how cater dynamic dependencies while building progressive web app using angular.

i have pre-cached bundle.js, bundle.css , static templates application using sw-precache build process. (assume templates (.html files) dependent on bundle.js , bundle.css)

  1. what if update template not pre-cached ? how ensure updation of bundle.js/css in conjunction template.

  2. what if update template pre-cached. update in conjunction pre-cached bundle.js/css files.

  3. last use case, when template pre-cached has inline script src attribute , script file not cached anywhere. assume made changes in template script file. caching approach should follow ensure updation of template file in conjunction script file.

we not following pure app-shell architecture, it's single page app designed using angular.js

sw-precache update file changes, generate new service worker , when deploy updates bundle js or css, should deploying new sw-precache generated service worker well.