Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Last active November 30, 2015 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshcutdevelopment/d4a40ff9c69804dda550 to your computer and use it in GitHub Desktop.
Save freshcutdevelopment/d4a40ff9c69804dda550 to your computer and use it in GitHub Desktop.
<script>
var systemLocate = System.locate;
System.cacheBust = '?bust=' + Date.now();
System.locate = function (load) {
var System = this;
return Promise.resolve(systemLocate.call(this, load))
.then(function (address) {
if (address.lastIndexOf("html.js") > -1) return address;
return address + System.cacheBust;
});
};
System.import('aurelia-bootstrapper');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment