问题描述
RFC 5861 proposes the Cache-Control
extensions stale-while-revalidate
:
和 过时的错误
:
当无法重新验证响应时,允许较长时间使用过时的内容.
to allow stale content to be used for longer when a response cannot be revalidated.
These are supported by CDNs, including Fastly and KeyCDN.
stale-while-revalidate
也是在提取"标准中提到的(不是 stale-if-error
).
浏览器的支持状态是什么?
What is the state of support in browsers?
推荐答案
- 受 Firefox 68 beta版本(跟踪)
- 由于 Chrome 75受支持(跟踪)
这些将是这些浏览器在 2019-07-09 和 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.)
这篇关于哪些浏览器支持“过时错误"和“过时重新验证"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!