Problem/Motivation
The version: VERSION line in maxlength.libraries.yml is creating a version query string using the Drupal Core version number for the asset files, making these files cached in the browser dependent on the Core version.
Steps to reproduce
This can produce various problems after an update, as the old versions of assets might be loaded for users who have those cached.
Proposed resolution
Remove the version: VERSION lines from libraries.yml. Read more about this in a similar issue created for Entity browser module.
Remaining tasks
- ✅Get maintainer approval for the proposed resolution
- ✅ Implement resolution
- ❌Write test coverage (contact a maintainer if you need help)
- ✅Maintainer review via the UI
- ✅Maintainer Code Review #1
- ❌Maintainer code review #2
- ❌Merge into dev branch, with credit to author and participants
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | remove_version_from_libraries-3326716-3.patch | 250 bytes | keszthelyi |
Issue fork maxlength-3326716
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
Comment #2
atul_ghate commentedHello @keszthelyi,
I will work on this issue.
Comment #3
keszthelyi commentedPatch from commit 8a46a88
Comment #4
keszthelyi commentedComment #5
himanshu_jhaloya commentedignore the patch
Comment #6
himanshu_jhaloya commentedComment #7
himanshu_jhaloya commentedcreated patch please review
Comment #8
keszthelyi commentedHi @himanshu_jhaloya
The patch in #7 is identical to the one already posted in #3. Not sure what's the point.
Comment #9
keszthelyi commentedComment #10
joevagyok commentedThanks for the patch @keszthelyi looks good. Will merge it up in dev branch and to be included in the next release.
Comment #11
joevagyok commentedComment #12
joevagyok commentedComment #13
cedeweyUs maintainers reviewed this and it works as expected. Thanks!
Comment #15
cedewey