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.

Issue fork maxlength-3326716

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

keszthelyi created an issue. See original summary.

atul_ghate’s picture

Assigned: keszthelyi » atul_ghate

Hello @keszthelyi,
I will work on this issue.

keszthelyi’s picture

StatusFileSize
new250 bytes

Patch from commit 8a46a88

keszthelyi’s picture

Issue summary: View changes
Status: Active » Needs review
himanshu_jhaloya’s picture

StatusFileSize
new0 bytes

ignore the patch

himanshu_jhaloya’s picture

himanshu_jhaloya’s picture

StatusFileSize
new250 bytes

created patch please review

keszthelyi’s picture

Hi @himanshu_jhaloya

The patch in #7 is identical to the one already posted in #3. Not sure what's the point.

keszthelyi’s picture

joevagyok’s picture

Thanks for the patch @keszthelyi looks good. Will merge it up in dev branch and to be included in the next release.

joevagyok’s picture

Assigned: atul_ghate » joevagyok
joevagyok’s picture

Issue summary: View changes
cedewey’s picture

Status: Needs review » Reviewed & tested by the community

Us maintainers reviewed this and it works as expected. Thanks!

cedewey’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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