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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Expires

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報