Problem/Motivation

Flexus theme library definitions currently include a VERSION string in *.libraries.yml. In Drupal core, the VERSION constant refers to the Drupal core version. Contributed modules and themes should not rely on that value for asset versioning, because it can lead to stale assets being served after CSS/JS changes.

This is especially risky behind CDNs and other intermediate caches: if the theme updates an asset file but the library version does not change, cache invalidation may not happen as expected, and users can receive outdated CSS/JS.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork flexus-3568431

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mxr576 created an issue. See original summary.

mxr576’s picture

Issue summary: View changes

jidrone’s picture

Status: Needs review » Reviewed & tested by the community

Good catch, thanks.

jidrone’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.