Expires
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Expires
ヘッダーには、レスポンスが古くなると見なされる日時が入ります。
値 0 のような無効な日付は過去の日付を表し、リソースがすでに有効期限切れであることを意味します。
メモ:
レスポンスに max-age
または s-maxage
ディレクティブを持つ Cache-Control
ヘッダーがある場合、Expires
ヘッダーは無視されます。
ヘッダー種別 | レスポンスヘッダー |
---|---|
禁止ヘッダー名 | いいえ |
CORS セーフリストレスポンスヘッダー | はい |
構文
Expires: <http-date>
ディレクティブ
- <http-date>
-
HTTP-date タイムスタンプ
例
Expires: Wed, 21 Oct 2015 07:28:00 GMT
仕様書
仕様書 | 題名 |
---|---|
RFC 7234, セクション 5.3: Expires | Hypertext Transfer Protocol (HTTP/1.1): Caching |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Expires |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.