Skip to content

Instantly share code, notes, and snippets.

@devyfriend
Last active December 18, 2015 05:59
Show Gist options
  • Select an option

  • Save devyfriend/5736479 to your computer and use it in GitHub Desktop.

Select an option

Save devyfriend/5736479 to your computer and use it in GitHub Desktop.
Expire cache on require.js data-main
<script type="text/javascript">
var require = {
baseUrl: "/scripts/",
waitSeconds: 15,
urlArgs : "bust="+{{buildNumber}},
deps : ['app/main']
};
</script>
<script src="/scripts/require.js?bust={{buildNumber}}"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment