The easiest way to get an uncached file is to add a line at the end of the file. This could be a version number, a timestamp, or some random string.
PHP:
<?php
echo '<script src="/js/file.js?t=' . time() . '"></script>';
JavaScript:
<script>
document.head.appendChild(
document.createElement('script')
).src='/js/file.js?t=' + (new Date().getTime());
<script>
For an unused file, change the line for each request each time.
- md5.