Needs work
Project:
Drupal core
Version:
main
Component:
asset library system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 May 2019 at 13:12 UTC
Updated:
22 Apr 2025 at 13:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
erscott commentedComment #3
idebr commentedComment #7
rattusrattus commentedThe patch in #7 does not apply to 8.9.x. Here's an updated patch that does.
Comment #8
rattusrattus commentedMissing a closing brace in the last patch : (
Comment #13
acbramley commentedNon aggregated CSS assets use a value from state which is derived from a timestamp and updated on cache clear. There is no need to append a version parameter as far as I can see? Honestly I'm not sure if JS files need it either? Marking PMNMI in case anyone disagrees
Comment #14
catchI think this is valid, but it's a task rather than a bug.
Using the version instead of the hashed timestamp means that if the CSS version doesn't change, it can persist in CDN/varnish/browser caches even when the Drupal cache is cleared which should result in better hit rates.
If we have tests for the js version in the query string, we should be able to adapt those for CSS straightforwardly so adding the 'needs tests' tag.
Comment #15
cilefen commented#3518344: Javascript asset version disclosure
Comment #18
sanket.tale commentedCreated MR but it is failed due to the Nightwatch pipeline on `ckEditor5EditorHeightTest.js`, which is unrelated. pipeline passed for the relevant areas.
Can someone please guide me on how to proceed with resolving or working around this Nightwatch failure?
Comment #19
smustgrave commentedIssue summary appears incomplete.
Was previously tagged for tests which still appear to be needed.