From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../http/headers/access-control-max-age/index.html | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 files/ja/web/http/headers/access-control-max-age/index.html (limited to 'files/ja/web/http/headers/access-control-max-age') diff --git a/files/ja/web/http/headers/access-control-max-age/index.html b/files/ja/web/http/headers/access-control-max-age/index.html new file mode 100644 index 0000000000..01ac17a758 --- /dev/null +++ b/files/ja/web/http/headers/access-control-max-age/index.html @@ -0,0 +1,81 @@ +--- +title: Access-Control-Max-Age +slug: Web/HTTP/Headers/Access-Control-Max-Age +tags: + - CORS + - HTTP + - Reference + - header +translation_of: Web/HTTP/Headers/Access-Control-Max-Age +--- +

{{HTTPSidebar}}

+ +

Access-Control-Max-Age レスポンスヘッダーは、{{glossary("preflight request", "プリフライトリクエスト")}}の結果 (つまり {{HTTPHeader("Access-Control-Allow-Methods")}} および {{HTTPHeader("Access-Control-Allow-Headers")}} ヘッダーに含まれる情報) をキャッシュすることができる時間の長さを示します。

+ + + + + + + + + + + + +
ヘッダー種別{{Glossary("Response header", "レスポンスヘッダー")}}
{{Glossary("Forbidden header name", "禁止ヘッダー名")}}いいえ
+ +

構文

+ +
Access-Control-Max-Age: <delta-seconds>
+
+ +

ディレクティブ

+ +
+
<delta-seconds>
+
結果をキャッシュすることができる最長の秒数です。
+ Firefox は24時間 (86400秒) キャッシュすることができます。
+ Chromium (v76 以前) は10分 (600秒) です。
+ Chromium (v76 以降) は2時間 (7200秒) です。
+ Chromium は既定値を5分に設定することもできます。
+ -1の値はキャッシュを無効にし、すべての呼び出しをチェックするためにプリフライトの OPTIONS が必要になります。
+
+ +

+ +

プリフライト要求の結果は10分間キャッシュされます。

+ +
Access-Control-Max-Age: 600 
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Fetch','#http-access-control-max-age', 'Access-Control-Max-Age')}}{{Spec2("Fetch")}}初回定義。
+ +

ブラウザーの互換性

+ + + +

{{Compat("http.headers.Access-Control-Max-Age")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf