I'm using BundleTransformer to combine and optimize our projects JavaScript
, LESS
and CSS
files.
In other projects and libraries usually append a hash of the combined files to the URL the asset is embedded in the HTML
code to force the browser to download the new version of the file as soon as one of the source files has changed.
I have been looking for a similar solution for the BundleTransformer
package but haven't found anything about versioning (also tried it with cache busting, etc.).
As this package currently has over 100k downloads I'm wondering how others solved this problem? Is there really no built-in way to append some kind of versioning suffix to the asset URL?
I also stumbled upon this solution by manually adding the build version to all of our assets - still I am wondering if there is a more elegant solution to this problem? (also this method is quite likely to force the browser to re-download files that have not been changed, for instance libraries like jQuery
)