Skip to content

Instantly share code, notes, and snippets.

@adparadise
Created November 2, 2012 23:16
Show Gist options
  • Save adparadise/4004945 to your computer and use it in GitHub Desktop.
Save adparadise/4004945 to your computer and use it in GitHub Desktop.
Node proxy, cache busting
chunkString = chunkString.replace(/src="(.*\.js)"/,
'src="$1?cb=' + Math.random() + '"');
chunkString = chunkString.replace(/href="(.*\.css)"/,
'href="$1?cb=' + Math.random() + '"');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment