I would like bootstrap studio to add a query string to css and js resources based on a checksum of the file.
Not only does this side step "clear your browser cache and refresh the page" issues with customers and reviewers. In production, it ensures caching proxies and services like Cloudflare serve the most current version of the file while still providing the benefits of caching.
Like some of my other tools, I would suggest using an MD5 hash because its relatively short and very rare not to pick up on single byte changes. The query string could be anything but I would also suggest using name=value pairs instead of just a value after the query string. Some services, software, or configurations may discard them otherwise.
The format would be:
url = filePath + '?id=' + hash;
A final example with a real hash would be:
link href="/css/app.css?id=ab13550e6059dee68fe5" rel="stylesheet"
A number of tools have standardised on "id" as the name attribute. It's short. Might even be a standard.