Cache busting with Jekyll

Sometimes you update an asset in your site, like an image or the css, but when you deploy it you keep looking to an older version of your site. Usually this is your browsers’ fault, since it caches the files to avoid downloading over and over again the same files with the same paths. There are a few solutions for this:

To make it easier to add cache busting to your assets, I created the jekyll-cache-bust plugin.

nice! I was obsessed with this a while back.

I add the site.time (or is it date?) to the end of files I want busted - not perfect but easy enough.

1 Like