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

Unexpected behavior of ETag #1276

Open
Kale-Ko opened this issue Nov 23, 2024 · 1 comment
Open

Unexpected behavior of ETag #1276

Kale-Ko opened this issue Nov 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Kale-Ko
Copy link

Kale-Ko commented Nov 23, 2024

Describe the bug
When fetching different resources the same ETag is always returned even for wildly different content. This can lead to unexpected behavior of caches but in this case it combines with a Docker buildx bug to produce an issue, see docker/buildx#2803. It is also strange behavior that the ETag is returned for some resources only if the Content-Encoding is set to gzip.

To Reproduce

  1. Run curl -X GET "https://api.adoptium.net/v3/assets/latest/8/hotspot" -H "Accept-Encoding: gzip" -o /dev/null -v and observe the ETag
  2. Run curl -X GET "https://api.adoptium.net/v3/info/available_releases" -H "Accept-Encoding: gzip" -o /dev/null -v and observe the ETag is the same

Expected behavior
The ETag is different for different content, generally a hash of the content.

Device (please complete the following information):

  • OS: Linux
  • Browser: curl
  • Version 8.11.0
@Kale-Ko Kale-Ko added the bug Something isn't working label Nov 23, 2024
@johnoliver
Copy link
Contributor

#1278 should address this.

Re the content encoding, will have to dig into that, not aware of any reason why that would be the case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants