Link

HTTP の Link エンティティヘッダーフィールドは、 HTTP ヘッダー内の 1 つ以上のリンクをシリアル化する手段を提供します。意味的には、 HTML の <link> 要素と同等です。

構文

http
Link: <uri-reference>; param1=value1; param2="value2"
<uri-reference>

URI 参照。 <> で囲む必要があります。

引数

リンクヘッダーには ; で区切られた引数が含まれており、 <link> 要素の属性に相当します。

URI (絶対または相対)は <> で囲む必要があります。

http
Link: <https://example.com>; rel="preconnect"
http
Link: https://bad.example; rel="preconnect"

複数リンクを指定

カンマで区切られた複数のリンクを指定できます。次に例を示します。

http
Link: <https://one.example.com>; rel="preconnect", <https://two.example.com>; rel="preconnect", <https://three.example.com>; rel="preconnect"

仕様書

Specification
Web Linking
# header

ブラウザーの互換性

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
Link
blocking
Experimental
rel=expect
Experimental
fetchpriority

Legend

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

Full support
Full support
No support
No support
Experimental. Expect behavior to change in the future.
See implementation notes.

関連情報