此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
Expires
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
Expires 响应标头包含响应应被视为过期的日期/时间。
无效的日期(比如 0)代表过去的日期,即该资源已经过期。
备注:如果响应中有指令为max-age 或s-maxage 的Cache-Control 标头,则Expires 标头会被忽略。
In this article
语法
http
Expires: <http-date>指令
- <http-date>
HTTP 日期时间戳。
示例
http
Expires: Wed, 21 Oct 2015 07:28:00 GMT规范
| Specification |
|---|
| HTTP Caching> # field.expires> |