From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/http/headers/device-memory/index.html | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 files/ja/web/http/headers/device-memory/index.html (limited to 'files/ja/web/http/headers/device-memory') diff --git a/files/ja/web/http/headers/device-memory/index.html b/files/ja/web/http/headers/device-memory/index.html new file mode 100644 index 0000000000..1c431536ab --- /dev/null +++ b/files/ja/web/http/headers/device-memory/index.html @@ -0,0 +1,85 @@ +--- +title: Device-Memory +slug: Web/HTTP/Headers/Device-Memory +tags: + - Client hints + - Device Memory API + - HTTP + - HTTP Header +translation_of: Web/HTTP/Headers/Device-Memory +--- +
{{HTTPSidebar}}{{securecontext_header}}{{SeeCompatTable}}
+ +

Device-Memory ヘッダーは、クライアントヒントのヘッダーのように機能する Device Memory API のヘッダーで、クライアントデバイスの RAM の概算量を表します。

+ + + + + + + + + + + + +
ヘッダー種別{{Glossary("Request header","リクエストヘッダー")}}
{{Glossary("Forbidden header name","禁止ヘッダー名")}}?
+ +
+

: クライアントヒントには、安全なオリジン(TLS 経由)でのみアクセスできます。 サーバーは、{{HTTPHeader("Accept-CH")}} および {{HTTPHeader("Accept-CH-Lifetime")}} のレスポンスヘッダーを送信することによって、クライアントから Device-Memory ヘッダーを受信することを選択する必要があります。

+
+ +

構文

+ +

デバイス RAM の量は、フィンガープリント変数として使用できるため、ヘッダーでの値は、誤用の可能性を減らすために意図的に粗くなっています。 ヘッダーは次の値を取ります: 0.250.51248

+ +
Device-Memory: <number>
+
+ +

+ +

サーバーはまず、レスポンスヘッダーとして Device-Memory を含む {{HTTPHeader("Accept-CH")}} と {{HTTPHeader("Accept-CH-Lifetime")}} を送信することによって、Device-Memory ヘッダーを受信するように選択する必要があります。

+ +
Accept-CH: Device-Memory
+Accept-CH-Lifetime: 86400
+
+ +

次に、後続のリクエストでクライアントは、次のように Device-Memory ヘッダーを送り返す場合があります。

+ +
Device-Memory: 1
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("Device Memory","#sec-device-memory-client-hint-header","Device-Memory")}}{{Spec2('Device Memory')}}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("http.headers.Device-Memory")}}

+ +

関連情報

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