I was thinking this morning that we constantly tell people two things about CSS, as in this wonderful presentation:

     http://www.hotdesign.com/seybold/ (pages 9 and 10)

we tell them

  a) it's more efficient because the style sheet only gets downloaded once!

and then we tell them

  b) you can reformat your whole site just by changing the CSS file!

and what, we just hope nobody notices that they contradict each other?

In other words, what do you do to ensure that your newly-updated stylesheet isn't cached? In the past, I've resorted to doing this:

  <!--#include virtual="link-rel.txt" -->

where link-rel.txt contains

  <link rel="stylesheet" href="/css/2005-09-18.css" type="text/css">

so that when changes are made, I can just change the include to refer to "2005-09-19.css" and be sure there's no caching going on. Or, in the case of a major browser-hanging bug, "2005-09-19-11-15AM.css" ...
------------------------------------------------------------
               "Have You Validated Your Code?"
John Horner                            (+612 / 02) 8333 3488
Developer, ABC Kids Online            http://www.abc.net.au/
------------------------------------------------------------
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to