哪些浏览器支持“过时错误"和“过时重新验证"? [英] Which browsers support stale-if-error and stale-while-revalidate?
问题描述
RFC 5861 proposes the Cache-Control
extensions stale-while-revalidate
:
在HTTP响应中存在时,过时的重新验证缓存"-控制扩展表示缓存可以在变陈后出现的数字,直到指定的数字秒.
When present in an HTTP response, the stale-while-revalidate Cache- Control extension indicates that caches MAY serve the response in which it appears after it becomes stale, up to the indicated number of seconds.
和 过时的错误
:
过时的错误Cache-Control扩展指示当遇到错误,可以使用缓存的过时响应来满足该请求,而与其他新鲜度信息无关.
The stale-if-error Cache-Control extension indicates that when an error is encountered, a cached stale response MAY be used to satisfy the request, regardless of other freshness information.
当无法重新验证响应时,允许较长时间使用过时的内容.
to allow stale content to be used for longer when a response cannot be revalidated.
这些是CDN支持的 ,其中包括快速和
These are supported by CDNs, including Fastly and KeyCDN.
stale-while-revalidate
也是(不是 stale-if-error
).
浏览器的支持状态是什么?
What is the state of support in browsers?
推荐答案
根据Chrome ,同时失效的
是:
- 受 Firefox 68 beta版本( Chrome 75受支持(这些将是这些浏览器在 2019-07-09 和<分别分别是href ="https://www.chromestatus.com/features/schedule" rel ="nofollow noreferrer"> 2019-06-09 .
These will be the main releases of those browsers on 2019-07-09 and 2019-06-09 respectively.
过时错误
似乎没有当前或计划的支持.stale-if-error
doesn't appear to have current, or planned, support.(请参阅RFC作者的博客 Chrome和Stale-While-重新验证,详细了解为什么在浏览器中实现此功能.)
(See the RFC author's blog Chrome and Stale-While-Revalidate for more detail on why to implement this in browsers.)
这篇关于哪些浏览器支持“过时错误"和“过时重新验证"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!