Link Relationships

HTML rel="compression-dictionary"

Offers a dictionary for future compressed responses under Compression Dictionary Transport. It needs appropriate server headers and browser support; it does not compress ordinary responses by itself. The example belongs in a document head; resource URLs are illustrative. Supply actual resources and server configuration to observe network behavior.

Formal Syntax & Structure

html syntaxhtml
<link rel="compression-dictionary" href="/assets/dictionary.dat">

Parameters & Attributes

NameTypeDescription
relspace-separated relationship tokensInclude compression-dictionary on an element that supports this relationship.
hrefURL or fragmentIdentifies the linked destination or resource.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>Example</title>    <link rel="compression-dictionary" href="/assets/dictionary.dat">  </head>  <body>    <p>Example document</p>  </body></html>
HTML Reference