Changes to JS and CSS aren't always coming through on production environments

Created on 15 July 2024, 3 months ago
Updated 28 July 2024, 3 months ago

Problem/Motivation

I noticed changes to JS and CSS aren't always coming through on production environments.

Steps to reproduce

Update some JS or CSS in the module. Deploy these changes to an environment where asset aggregation is enabled.

Proposed resolution

Remove versions from the library definitions, or make sure to always update them when changing something in the library files.

Taken from this change record โ†’ :

Aggregate filenames are now based on the library definition instead of the contents of the file. However if a library does not have a version, the contents of the file will be additionally used to make up part of the hash. This allows custom modules and themes to invalidate browser and edge caches without having to increment their version each deployment.

๐Ÿ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024