Skip to content

Instantly share code, notes, and snippets.

@mamoo
Created September 10, 2012 20:22
Show Gist options
  • Select an option

  • Save mamoo/3693584 to your computer and use it in GitHub Desktop.

Select an option

Save mamoo/3693584 to your computer and use it in GitHub Desktop.
require js test (bust browser caching by appending a dummy url param).
require.config({
baseUrl: "/js/",
urlArgs: 'cb=' + Math.random(), // <<< That's it.
paths: {...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment