- Issue created by @penyaskito
- πΊπΈUnited States swirt Florida
penyaskito I am trying to find an example of this. Usually css in Drupal gets a hash that is re-generated with each cache clear as a cache buster. Clearing cache changes the query string and makes sure people get the newer version of the CSS if there is one.
example
<link rel="stylesheet" media="all" href="/core/themes/claro/css/classy/components/field.css?t0ivnj" /> <link rel="stylesheet" media="all" href="/core/themes/claro/css/classy/components/icons.css?t0ivnj" /> <link rel="stylesheet" media="all" href="/core/themes/claro/css/classy/components/inline-form.css?t0ivnj" /> <link rel="stylesheet" media="all" href="/core/themes/claro/css/classy/components/item-list.css?t0ivnj" />
Do you have an example of a css library that shows its actual version when it appears?
- πͺπΈSpain penyaskito Seville π, Spain πͺπΈ, UTC+2 πͺπΊ
It might be dependant on contrib modules. e.g. https://git.drupalcode.org/project/fontawesome/-/blob/8.x-2.x/fontawesom...
- πΊπΈUnited States swirt Florida
I am not sure fontawesome is anything I can do anything about because it reveals the version in a location that is not managed by Drupal if you load it externally.
<script src="https://use.fontawesome.com/releases/v6.4.0/js/all.js" defer crossorigin="anonymous"></script> <script src="https://use.fontawesome.com/releases/v6.4.0/js/v4-shims.js" defer crossorigin="anonymous"></script>
If you load the file locally the module is meant to look for it in a certain path. If the path includes the version, rather than a query parameter, there is probably not anything this module can do about it. However according to the project's README the path nor file indicate the version
/libraries/fontawesome directory.The JS file should
be at /libraries/fontawesome/js/all.jsThough I also tried installing it locally using the module's drush command but for some reason that failed too
I have not managed to have it loaded locally so I can not verify that is does or does not contain the version.
penyaskito if you can provide a screenshot or copy of what output you are seeing for the CSS that indicates the version, that would be very helpful.