Re: Re: php and CSS level 2

From: Date: Sun, 21 Mar 2004 05:38:31 +0000
Subject: Re: Re: php and CSS level 2
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-181073@lists.php.net to get a copy of this message
RD> I do wonder if either of the above methods would force the RD> browser to never cache the CSS file locally You know, I didn't think about that, as I've never personally used this method. I've never had a need. Thinking about it now, I would also think that you may need to send a content-type header of "text/css" to the browser, as well, though I'm not positive on this. OT --> Consequently, I've had a lot of trouble with IE caching any CSS file for a site I'm working on. Works perfectly in Mozilla, but IE has all sorts of bugs. It's loading the page before the CSS every time, so you get this flash of unformatted data. The client and most of their site users use IE, so I have to make it work. My boss found an odd work-around, though. If you put "<script type="text/javascript"> </script>" at the very top, just inside the <head> tag, then it will work just fine and load in the CSS first every time. I don't know the logic behind it, but, if it's IE, does there have to be any logic? ;-) -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey

« previous php.general (#181073) next »