Link

HTTP 实体报头 Link 提供了序列化 HTTP 头部链接的方法。它在语义上与 HTML 元素 <link> 相等。

语法

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

URI reference 必须要用 <>来关闭。

参数

link 头部包含以 ; 分隔的参数,这些参数与 HTML 元素 <link> 的属性一致。

示例

URI 必须要用 <> 来关闭:

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

规范

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.

参见