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

Added faster non-cryptographic hash for etag generation #6207

Merged
merged 1 commit into from
Mar 30, 2024

Conversation

jadidbourbaki
Copy link
Contributor

@jadidbourbaki jadidbourbaki commented Mar 30, 2024

Related issue: #6205

Similar to the non cryptographic hash added in this PR for load balancing: #6203 (related issue: #6201)

Thanks for the helpful discussion @WeidiDeng

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thank you!

(That reminds me, we probably need to try moving ETag to the Headers instead of the Trailers.)

@mholt mholt merged commit 1217449 into caddyserver:master Mar 30, 2024
25 checks passed
@WeidiDeng
Copy link
Member

@mholt Wasn't because hash was calculated as the response was being written that it was put as a trailer?

@mholt
Copy link
Member

mholt commented Apr 1, 2024

@WeidiDeng Yep, so putting in the header will be less efficient.

@francislavoie francislavoie added the dependencies ⛓️ Pull requests that update a dependency file label Apr 2, 2024
@francislavoie francislavoie added this to the v2.8.0 milestone Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies ⛓️ Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants