gpt4 book ai didi

http - 'must-revalidate' 和 'proxy-revalidate' 有什么区别?

转载 作者:可可西里 更新时间:2023-11-01 15:27:03 26 4
gpt4 key购买 nike

在我的理解中,这两个指令都意味着缓存服务器将要求原始服务器重新验证来自客户端浏览器的请求。这两个指令有什么区别?

最佳答案

RFC 7234, section 5.2.2.7 , 解释:

The "proxy-revalidate" response directive has the same meaning as themust-revalidate response directive, except that it does not apply toprivate caches.

(强调已添加。)An earlier version of the spec继续描述如何使用它:

It can be used on a response to an authenticated request to permit the user's cache to store and later return the response without needing to revalidate it (since it has already been authenticated once by that user), while still requiring proxies that service many users to revalidate each time (in order to make sure that each user has been authenticated). Note that such authenticated responses also need the public cache control directive in order to allow them to be cached at all.

关于http - 'must-revalidate' 和 'proxy-revalidate' 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29338249/

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