Skip to content

Instantly share code, notes, and snippets.

@bonza-labs
bonza-labs / gist:1157598
Created August 19, 2011 18:28
adding cache busting parameter to url
var ts = new Date().getTime()
url = '';
// adding cache busting to url
url += ( /\?/.test( url ) ? "&" : "?" ) + "_=" + ts : ""