Skip to content

Instantly share code, notes, and snippets.

@elfacht
Last active October 8, 2020 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elfacht/929c5d2110ddcbe95e55f44fce651a4a to your computer and use it in GitHub Desktop.
Save elfacht/929c5d2110ddcbe95e55f44fce651a4a to your computer and use it in GitHub Desktop.
🤸🏽‍♀️ Cache Breaker Bookmarklet
javascript:(function()%7Bvar%20url%20%3D%20location.protocol%20%2B%20'%2F%2F'%20%2B%20location.host%20%2B%20location.pathname%3Bwindow.location.href%20%3D%20url%20%2B%20'%3F'%20%2B%20Math.floor((Math.random()%20*%20100000000000)%20%2B%201)%7D)()
javascript:(function() {
var url = location.protocol + '//' + location.host + location.pathname;
window.location.href = url + '?' + Math.floor((Math.random() * 100000000000) + 1);
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment