- Issue created by @dww
- π¬π·Greece akz
Or perhaps `version` should be completely omitted and added by front end devs if desired and applicable in their dev workflows. In case `version: VERSION` is forgotten and left as is, it can be proven problematic because of this:
Starting from Drupal 10.1.2, the version information within a library definition plays a critical role in generating a unique hash for aggregated files. Consequently, it is imperative that the "version" in a library definition is updated whenever a referenced CSS/JS file undergoes changes.
Alternatively, if the version is omitted, the prior behavior will apply, where the content of referenced CSS/JS files is utilized in the hash.
Incorrect usage of version information could lead to browser and edge cache invalidation issues.
via https://www.drupal.org/docs/develop/creating-modules/adding-assets-css-j... β
tldr; `version: VERSION` will not update the aggregated files every time their contents are updated.