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)
what if update template not pre-cached ? how ensure updation of bundle.js/css in conjunction template.
what if update template pre-cached. update in conjunction pre-cached bundle.js/css files.
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.