js on page load clear cache 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>
window.history.forward(1);
<script src="js/myfile.js?t=<?=time()?>" type="text/javascript"></script>