默认情况下缓存控制是公共还是私有?

问题描述 投票:2回答:1

如果我没有在public标头中指定privateCache-Control指令,默认行为是什么?代理服务器是否可以缓存它?

caching cache-control
1个回答
1
投票

webmasters.stackexchange.com上找到了答案。引用:

请参见http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.3

The max-age directive on a response implies that the response is
cacheable (i.e., "public") unless some other, more restrictive cache
directive is  also present. 

可以想象(可能吗?)有代理在野外打破了这一点,但因为唯一的失败模式可能将公共资源视为私人,后果应在性能不受影响的情况下保持最小。您将拥有更多代理的问题,这些代理所做的事情远远超出了缓存资源您指定的最大年龄。

© www.soinside.com 2019 - 2024. All rights reserved.