This has probably been around for ages but I only learnt about it today
When you have a static file but you want to control caching just add a query string as in
<script src=”cachedfile.js?ver=1″ type=”text/javascript”>
next time you want to edit it just change it to
<script src=”cachedfile.js?ver=2″ type=”text/javascript”>
Simple but effective!