Created
February 1, 2012 19:59
-
-
Save thraxil/1718994 to your computer and use it in GitHub Desktop.
cachebuster bookmarklet
This file contains hidden or 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
javascript:window.location=window.location.href+(window.location.href.indexOf("?")==-1?"?":"&")+"__cachebuster="+parseInt(Math.random()*99999999); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Appends a random __cachebuster parameter to the URL. Handy for when you're forced to deal with browsers that cache in retarded ways and you're going a little bit insane always wondering why you aren't seeing the changes you made. It's a little dumb; just appends each time so if you hit it over and over, your URL just gets longer and longer. I'd welcome a patch to find/replace the existing __cachebuster parameter if it already exists.