Movatterモバイル変換


[0]ホーム

URL:


  1. 面向开发者的 Web 技术
  2. HTTP
  3. 参考
  4. HTTP 标头
  5. Expires

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in EnglishAlways switch to English

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-ages-maxageCache-Control 标头,则Expires 标头会被忽略。

标头类型响应标头
禁止修改的标头
列入 CORS 安全名单的响应标头

语法

http
Expires: <http-date>

指令

<http-date>

HTTP 日期时间戳。

示例

http
Expires: Wed, 21 Oct 2015 07:28:00 GMT

规范

Specification
HTTP Caching
# field.expires

浏览器兼容性

参见

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp