Search code examples
phphttpstylesheet

HTTP Header Stylesheets


According to this: http://www.w3.org/TR/html4/present/styles.html#h-14.6 I can link stylesheets directly in the http header. In php it would look like this:

header('Link: <http://www.acme.com/corporate.css>; REL=stylesheet');

are there any drawbacks in doing this?


Solution

  • The main drawback is that it only works in Firefox and Opera. See http://greenbytes.de/tech/tc/httplink/.