gpt4 book ai didi

http - 我应该指定 "Vary: If-None-Match, If-Modified-Since"吗?

转载 作者:可可西里 更新时间:2023-11-01 17:24:15 25 4
gpt4 key购买 nike

RFC 7231 :

The "Vary" header field in a response describes what parts of a
request message, aside from the method, Host header field, and
request target, might influence the origin server's process for
selecting and representing this response.

最佳答案

没有。

RFC says :

An origin server SHOULD send a Vary header field when its algorithmfor selecting a representation varies based on aspects of the requestmessage other than the method and request target

在这种情况下,表示形式不是由这些 header 的值决定的。它们用于决定是否应发送正文。

作为提示:

For example, there is noneed to send the Authorization field name in Vary because reuseacross users is constrained by the field definition

对于条件请求字段也是如此。

关于http - 我应该指定 "Vary: If-None-Match, If-Modified-Since"吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49592123/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com