Skip to content

Instantly share code, notes, and snippets.

@bonza-labs
Created August 19, 2011 18:28
Show Gist options
  • Save bonza-labs/1157598 to your computer and use it in GitHub Desktop.
Save bonza-labs/1157598 to your computer and use it in GitHub Desktop.
adding cache busting parameter to url
var ts = new Date().getTime()
url = '';
// adding cache busting to url
url += ( /\?/.test( url ) ? "&" : "?" ) + "_=" + ts : ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment