You need to use version control in your file. Each time you change the URI of your file, the browser does not find a match in the cache and reloads the include.
For instance:
<script type="text/javascript" src="include/232/init.js"></script>
Where 232 is your modifiable version number, which must be changed when new code is released.
Alternatively, you can use the query strings:
<script type="text/javascript" src="include/init.js?232"></script>
The fact is that you must somehow modify the file with the URI when you want your visitors to re-upload the file.
If you use PHP or another server language, you can configure this version control automatically every time you change your file: http://derek.io/blog/2009/auto-versioning-javascript-and-css-files/
source share