Turn off Javascript Caching in Moodle
When developing in Moodle, Javascript caching can be a real pain as you generally need to purge caches & reload the page to get the javascript to refresh.
There’s an easy way to turn it off though:
Site Administration > Appearance > AJAX and Javascript
Cache Javascript (cachejs) which is set to YES by default. Turn this off.