[webkit-dev] Proposal: Link http header support

Gavin Peters (蓋文彼德斯) gavinp at chromium.org
Wed Jun 2 15:28:55 PDT 2010


I'm starting hacking at adding support for the Link: http header.  This is
described in RFC 2068, although not RFC 2616.  As well, there's a current
internet draft describing it:
http://tools.ietf.org/id/draft-nottingham-http-link-header-10.html .  This
header is being discussed in the IETF HTTP WG mailing list.  Since it was in
HTTP 1.1 as first published, it is reserved, and legal to use today for this

The HTTP Link header should be treated nearly identically to an HTML Link
element.  This means that guidance for stylesheet, subresource & stylesheet
loading can be provided to a browser before any parse of HTML has been
started.  Possibly a win.  Right now, Leon Clarke has a patch he's landing
for the link rel=prefetch case in HTML, see
https://bugs.webkit.org/show_bug.cgi?id=3652 .  I'd like to code this up for
headers as well.

At first, I'd like to take a relatively simpleminded approach.  I don't want
to carry forward DOM implications of the HTTP header (i.e. i'll ignore an
onload attribute), and I don't think I'll share much code with
HTMLLinkElement.cpp.  However, I'm open to feedback on this.  I intend to
catch a few simple rel cases (subresource, prefetch & stylesheet) and launch
appropriately prioritized resource requests.

Any thoughts?

- Gavin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100602/d2631544/attachment.html>

More information about the webkit-dev mailing list