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:
- press Shift + F5 on Chromium-based or Ctrl + F5 on Firefox-based browsers to reload the page ignoring cached content
- clean your browser history
- simply try it in a private session, here’s how to do it in Chrome and Firefox
- add cache busting to your assets
To make it easier to add cache busting to your assets, I created the jekyll-cache-bust plugin.