I'm developing an application in Angular2 and I'm facing a problem that is updating the JS files. When I update the version sometimes the browser does not load the new file, it uses the old one. I know if I put the version of the file at the end of the reference, like:
nomedoarquivo.js?v=1
works.
The problem is that js is not referenced directly in index.html as in Angular JS 1, files < in> JS are loaded through the SystemJS . Does anyone know a way to force it to always load the new JS , or version the JS using the SystemJS ?