且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从PHP缓存头

更新时间:2023-09-18 10:05:04

是的。一般情况下,每一个成功的响应可能会被缓存除非有一些约束

Yes. In general, every successful response may be cached unless there are some constrains:

除非明确由一个缓存控制约束( 14.9节)指令,缓存系统可以始终保存成功响应(见的作为缓存条目部分13.8 ),可以返回它而不验证它是否是新鲜的,并成功验证后可能返回。

Unless specifically constrained by a cache-control (section 14.9) directive, a caching system MAY always store a successful response (see section 13.8) as a cache entry, MAY return it without validation if it is fresh, and MAY return it after successful validation.