title: Append Dynamic version(variable ) in Script tag and stylesheet based on time
body: <pre><code>&lt;script src="/assets/abc.js?v='+new Date.getTime();" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;link href="/assets/cder.css?v='+new Date.getTime();"  rel="stylesheet"&gt;&lt;/link&gt;
  </code></pre>
  
  <p>or,</p>
  
  <pre><code>var myVariable = Math.floor(Math.random() * 999999999999);
  &lt;script src="/assets/abc.js?v='+myVariable ;" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;link href="/assets/cder.css?v='+new Date.getTime();"  rel="stylesheet"&gt;&lt;/link&gt;
  </code></pre>
  
  <p>I have tried this as below but the <code>script is not loading on network tab.</code></p>
  
  <pre><code>&lt;script type="text/javascript&gt;
      var script = document.createElement('script');
      script.setAttribute('src', '/assets/abc.js?v=' + new Date.getTime());
      var head1 = document.getElementsByTagName("head")[0];
      head1.appendChild(script);
  &lt;/script&gt;
  </code></pre>
  
  <p>I am trying to add dynamic  version(variable ) in script tag and stylesheet based on current time or some dynamic variable? </p>
  
  <p>If possible, Please help me with the shortest and efficient solution.</p>
  
  <p>How to achieve that?</p>