这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@iwong-isp
Copy link
Collaborator

Huma currently overrides the Vary response header to always be Vary: Accept-Encoding. This is problematic because it overrides other potential headers the server might set to indicate how the browser should cache the resource. For example, Vary: Origin may be needed to avoid CORs when the same resource is being called by multiple origins docs.

This PR instead has Huma add the Vary: Accept-Encoding to avoid overwriting other Vary values already set.

@sslotnick-isp
Copy link
Collaborator

Looks good!

@iwong-isp iwong-isp merged commit 2f0f492 into main Nov 22, 2022
@iwong-isp iwong-isp deleted the fix-vary-header branch November 22, 2022 21:36
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.

3 participants