Skip to content

Conversation

AkihiroSuda
Copy link
Member

The caches are now created separately for compressed and decompressed contents. When a decompressed content is cached and a compressed content is requested, the downloader now correctly returns the compressed content.

  • URLSHA/data: unmodified original data
  • URLSHA/sha256.digest: digest of the original data
  • URLSHA+decomp/data: decompressed data
  • URLSHA+decomp/sha256.digest: digest of the original (i.e., compressed) data

Caching a decompressed content does not automatically cache the original compressed content.

@AkihiroSuda AkihiroSuda added this to the v2.0.0 milestone Sep 22, 2025
The caches are now created separately for compressed and decompressed contents.
When a decompressed content is cached and a compressed content is requested,
the downloader now correctly returns the compressed content.

- URLSHA/data:                 unmodified original data
- URLSHA/sha256.digest:        digest of the original data
- URLSHA+decomp/data:          decompressed data
- URLSHA+decomp/sha256.digest: digest of the *original* (i.e., compressed) data

Caching a decompressed content does not automatically cache the original compressed content.

Signed-off-by: Akihiro Suda <[email protected]>
@AkihiroSuda AkihiroSuda marked this pull request as draft September 22, 2025 16:32
k += "+decomp"
}
return k
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(On second thought this might be rather confusing when the original data is not compressed)

@AkihiroSuda AkihiroSuda requested review from jandubois and a team September 24, 2025 00:12
@AkihiroSuda AkihiroSuda marked this pull request as ready for review October 1, 2025 09:14
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