Skip to content
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

Add version to plugin URL to prevent caching #135

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

obgibson
Copy link
Collaborator

@obgibson obgibson commented Feb 6, 2024

Requirements for a pull request

  • Unit tests related to the change have been updated
  • Documentation related to the change has been updated

Description of the Change

Add version to the path so that the browser cache is busted and the latest plugin is always downloaded.

Alternate Designs

A random number in the path to always bust the cache. The downside of this approach is that the HTML request would never be cached. The implemented approach will cache most of the time yet will download a new version when the version number is changed in the config for the plugin.

Possible Drawbacks

Plugin developers may not update the version number in the config.

Verification Process

  • Ensure that the URL for the iframe for the plugin includes the version

Release Notes

Add version to the plugin URL to bust the cache when the version changes

@obgibson obgibson merged commit 4eec9d6 into master Feb 6, 2024
3 checks passed
@obgibson obgibson deleted the bug/plugin-cache branch February 6, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant