TIL: How to do manual cache busting in Zola

As the cachebust=true functionality of the get_url filter is broken in version 0.11 you need to have another way to bust cache on static assets.

A simple way is to add a build time stamp at the end of the asset url: https://domain.com/asset.png?t=timestamp. For example a stylesheet might be included like this


This is not perfect as ideally we only want to bust the cache if the content actually changes but at least we ensure that the visitor does not see stale static files.