clear application cache and hard reload once in javascript code example
Example 1: javascript empty cache and hard reload
window.history.forward(1);
Example 2: forece reload without clear cache js
<script src="js/myfile.js?t=<?=time()?>" type="text/javascript"></script>