title: Load External Script and Style Files in a SPA
body: <p>I have a type of SPA which consumes an API in order to fetch data. There are some instance of this SPA and all of them use common style and script files. So my problem is when I change a single line in those files, I will have to open each and every instances and update the files. It's really time consuming for me.</p>
  
  <p>One of the approaches is to put those files in a folder in the server, then change the version based on the time, but I will lose browser cache if I use this solution:</p>
  
  <pre><code>&lt;link href="myserver.co/static/main.css?ver=1892471298" rel="stylesheet" /&gt;
  &lt;script src="myserver.co/static/script.js?ver=1892471298"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The ver value is produced based on time and I cannot use browser cache. I need a solution to update these files from the API, then all of the SPAs will be updated.</p>