I fell down and got confused. Willow fixed me. She's gay.

BuffyBot ,'Dirty Girls'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Sue - Feb 26, 2009 7:10:59 am PST #9222 of 25501
hip deep in pie

§ ita § - Feb 26, 2009 11:15:52 am PST #9223 of 25501
Well not canonically, no, but this is transformative fiction.

I'm trying to work out how to force a browser to refresh its css. I've sent header information no-cache, must-revalidate and an expiration date in the past. But no dice. I have to manually refresh the page for the updated css to be included.


Ginger - Feb 26, 2009 12:01:45 pm PST #9224 of 25501
"It didn't taste good. It tasted soooo horrible. It tasted like....a vodka martini." - Matilda

I looked around a bit and this [link] looks promising.


tommyrot - Feb 26, 2009 12:04:41 pm PST #9225 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

I looked around a bit and this [link] looks promising.

Huh. That kinda' clever. I was thinking you could change the name of the css each time you want it to refresh, but figured that would be too much of a PITA.


§ ita § - Feb 26, 2009 12:17:43 pm PST #9226 of 25501
Well not canonically, no, but this is transformative fiction.

Ooh thanks.


Jon B. - Feb 26, 2009 12:35:38 pm PST #9227 of 25501
A turkey in every toilet -- only in America!

Very clever! One of the commenters had a good idea to further this: make the version # a php variable containing the date stamp of the css file. Then you never have to update the css link.


§ ita § - Feb 26, 2009 12:38:31 pm PST #9228 of 25501
Well not canonically, no, but this is transformative fiction.

That won't work for the board, but I might be able to force a reload right after the file is updated and saved, and hopefully that takes.


Typo Boy - Feb 26, 2009 12:41:31 pm PST #9229 of 25501
Calli: My people have a saying. A man who trusts can never be betrayed, only mistaken.Avon: Life expectancy among your people must be extremely short.

Jon B. - Feb 26, 2009 12:54:46 pm PST #9230 of 25501
A turkey in every toilet -- only in America!

That won't work for the board

Why not?


§ ita § - Feb 26, 2009 1:00:41 pm PST #9231 of 25501
Well not canonically, no, but this is transformative fiction.

Well, I don't want to do a file date/time read every time a page loads. Overhead.

So, I overstated. Can work. Don't think it's our best solution.

I'm pissed that what should work, the http headers, does not.

Right now I think asking the user to refresh one page is clunky but overall better.