A Chrome extension for appending a page’s URL with a cache-busting querystring. 👊
Tired of manually appending the URL over and over in my latest work project, I built a Chrome extension to do the lifting for me. This is the source code. The extension itself can be found at https://chrome.google.com/webstore/detail/cachebuster/afiinpbcebimbkifmejdieegbekceodk
It works by pushing the POSIX time onto the querystring and then reloading the page.
This is my first Chrome extension, so first I needed to figure out how to build one.
Functionally, I want it out of the way. Clicking the extension button works, but I’ve assigned alt+r to run it as well.
It doesn’t pollute the browser history. Buy using history.replaceState
, Cachebuster overwrites the existing page and then calls document.reload
as a callback.
Matthew Smith - @niftinessafoot
Boxing Glove by Iyyuk Papa via the Noun Project
MIT © Matthew Smith