Javascript cache bust variable remained constant

Created on 16 October 2024, 30 days ago

Problem/Motivation

When using a CDN such as Cloudflare - a cache busting parameter is expected to be incremented on each version

Steps to reproduce

Observe the URL to the min.js file (eu_cookie_compliance.min.js?v=10.3.6) - this remined the same between versions - as Drupal core was the same

Proposed resolution

Use a version number in the libraries.yml that increments on each release - or remove the "version: VERSION" altogether from line 2 - such that the cache busting param is refreshed on a full cache clear.

To workaround for now - perform a full edge cache clear - to force the stale files to be evicted

🐛 Bug report
Status

Active

Version

1.25

Component

Code

Created by

🇬🇧United Kingdom newaytech

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

Comments & Activities

Production build 0.71.5 2024