Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #56 from w3c/nopush
Browse files Browse the repository at this point in the history
Add support for `nopush` target attribute
  • Loading branch information
igrigorik committed Feb 12, 2016
2 parents 87c4ca5 + 31af3c7 commit 89b6eee
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion index.html
Expand Up @@ -279,7 +279,20 @@ <h2>Server Push (HTTP/2)</h2>
<p>The server MAY initiate server push for <a>preload link</a> resources
defined by the application for which it is [authoritative][]. Initiating
server push eliminates the request roundtrip between client and server
for the declared <a>preload link</a> resource.</p>
for the declared <a>preload link</a> resource. Optionally, if the use of
server push is not desired for a resource declared via the `Link` header
field ([[!RFC5988]]), the developer MAY provide an opt-out signal to the
server via the `nopush` target attribute ([[!RFC5988]] section 5.4). For
example:</p>
<pre class="example">
Link: &lt;/app/style.css&gt;; rel=preload; as=style; nopush
Link: &lt;/app/script.js&gt;; rel=preload; as=script
</pre>
<p class="note">The above example indicates to an HTTP/2 push capable
server that `/app/style.css` should not be pushed (e.g. the origin may
have additional information indicating that it may already be in cache),
while `/app/script.js` should be considered as a candidate for server
push.</p>
<p>Initiating server push for a <a>preload link</a> is an optional
optimization. For example, the server might omit initiating push if it
believes that the response is available in the client's cache: the client
Expand Down

0 comments on commit 89b6eee

Please sign in to comment.