How do you deal with cache busting css/js files?

I know there is a plugin for it, but why isn’t such critical feature part of the core? If you update the style of your website, your client probably doesn’t see it without clearing the cache. I always end up using a snippet, which adds the file modification time as a parameter such as ?v=123456.... I wish the builtin css() and js() helpers would do that for me. Will there be anything like that in Kirby v4? :pray:

1 Like

Probably because there are multiple ways to go about this and people handle it differently, it already starts with people preferring the query string while others prefer changing the file name.

Also, often, file naming is handled by build-pipelines…

But if there is no suggestion for this on https://feedback.getkirby.com, please feel free to post your suggestion there.

1 Like