W3C home > Mailing lists > Public > www-style@w3.org > March 2004

Alternate stylesheet locations?

From: Francois Z <fz.2003@klacto.net>
Date: Thu, 04 Mar 2004 11:50:04 -0500
Message-ID: <40475E3C.5090107@klacto.net>
To: www-style@w3.org

Is there a sanctioned way to tell browsers to look for ONE style sheet 
in TWO places (such as: (1) the docroot and (2) the current directory), 
and run with the first they find?

(1) <link rel="stylesheet" type="text/css" href="/style.css">
(2) <link rel="stylesheet" type="text/css" href="style.css">

Reason: I want /style.css in one place on the live site, but would still 
like to make it easy for collaborators to view/edit files, in the 
intended style, on their desktops.

I can put both (1) and (2), but then the css gets fetched twice, giving 
a 404 (or 304 for the pages that happen to be in the docroot). Is there 
a better way, that would avoid this traffic?
Received on Thursday, 4 March 2004 11:50:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:12 UTC