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
[FEATURE] support multiple integrity algorithms #25
Comments
To investigate: the cache index stores a single integrity string, but would have to store multiple. Ie, instead of |
Might be good to do this along with the flat folders PR, since it's a change to the content/index layout algorithm, so we don't have to bump that twice. |
The cache index files seem to support multiple integrity lines per file eg:
which I've been using as a workaround for this issue, and doesn't require changing the integrity string requirements |
What / Why
Right now, if you provide multiple algorithms to content.write(), it'll error out with:
It's said that for a long time. Let's support multiple algorithms!
This causes some suboptimal caching in
make-fetch-happen
, because we may have an integrity value that is asha512
, but it always caches assha1
, so we can never have a cache hit.How
In
lib/content/write.js
, we always place the content in a single location based on the integrity and algorithm.Current Behavior
The text was updated successfully, but these errors were encountered: