Skip to content

Add consistent ?mv={version} cache busting suffix to prevent browser cache issues (part two) #16026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

Mark-H
Copy link
Collaborator

@Mark-H Mark-H commented Feb 2, 2022

I somehow missed committing these changes for #16016, so here's part two. 😬

What does it do?

Adds ?mv={version} to registered css and js scripts that are prone to change between releases.

Note I've opted for ?mv instead of ?v because there are extras that already use their own ?v so this reduces the odds of conflicts.

Why is it needed?

Avoid sticky browser caches like https://community.modx.com/t/modx-3-0-0-package-management-processor-not-found/4908

How to test

Confirm correct version string gets added and things still work.

Related issue(s)/PR(s)

#16016

@Mark-H Mark-H requested a review from opengeek as a code owner February 2, 2022 12:33
@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Feb 2, 2022
@Mark-H Mark-H changed the title 3.x cachebust Add consistent ?mv={version} cache busting suffix to prevent browser cache issues (part two) Feb 2, 2022
@Mark-H Mark-H added this to the v3.0.0-rc2 milestone Feb 2, 2022
@JoshuaLuckers
Copy link
Contributor

How do we know it's complete now? 🤷‍♂️😋

@Mark-H
Copy link
Collaborator Author

Mark-H commented Feb 2, 2022

Well, at least I no longer have any uncommitted changes! 😆 Also:

How to test

@opengeek opengeek merged commit 3bc624f into modxcms:3.x Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed CLA confirmed for contributors to this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants