Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.33 KB

readme.md

File metadata and controls

27 lines (14 loc) · 1.33 KB

Cachebuster Extension Icon Cachebuster

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.

Design Considerations

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. By using history.replaceState, Cachebuster overwrites the existing page and then calls document.reload as a callback.

Authors

Matthew Smith - @niftinessafoot

Shoutouts

Boxing Glove by Iyyuk Papa via the Noun Project

License

MIT © Matthew Smith