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 explicit version to JavaScript package to bust importmap CDN cache #54

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

hopsoft
Copy link
Owner

@hopsoft hopsoft commented Feb 13, 2024

The cache busting mechanic employed by jspm.io is based on hashing the contents of the package's main entrypoint. That strategy works great for normal JavaScript libraries, but many of my libraries are "joint" libraries having both a Ruby library and companion JavaScript library. I always release both libraries together (with the same version number) regardless if one of them didn't actually have changes. This makes it less confusing for folks keeping the libraries in sync for their applications.

TLDR; jspm.io does not invalidate its cache for the JavaScript package and will continue to ship the last version of the library that included changes regardless of the current library version.

@hopsoft hopsoft changed the title Add explicit version to JavaScript package so bust importmap CDN cache Add explicit version to JavaScript package to bust importmap CDN cache Feb 13, 2024
@hopsoft hopsoft merged commit c7dc932 into main Feb 13, 2024
9 checks passed
@hopsoft hopsoft deleted the hopsoft/jspm-cache-buster branch February 13, 2024 20:33
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.

None yet

1 participant