Created
August 19, 2011 18:28
-
-
Save bonza-labs/1157598 to your computer and use it in GitHub Desktop.
adding cache busting parameter to url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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