Forum Moderators: not2easy
I read an article about this somewhere but it was pretty technical and my knowledge so far is not advanced enough that I could understand it. So where but WebmasterWorld to get down-to-earth instructions? :)
Thanks,
Matthew
I believe any work around you find probably wont be worth the effort :). Best thing to do is try the site yourself and see which file you get, chances are your users will get the same.
The best thing you could do is use a script to change your css with a cookie & get your visitors to click it. I use a script that changes the default css on one of my sites and it makes the text size around the site change.
When it comes to Opera I have no clue what's going on as you have to load the CSS in a window and refresh it to get the latest copy.
If you want to control caching, you have to set up your server to do it correctly, or use the capability of your scripting language(s) to send the proper cache-control header responses.
There's a pretty decent caching tutorial here [mnot.net]. Also see the cachability checker there, too.
Jim
"style.css?1"
OR
"style.css?20031126"
OR
"style.css?<?PHP echo time();?>"
Anything with a GET parameter will force the browser to fetch the file again from the server. Some versions of IE will cache "style.css?1" which is why the third option can be useful in testing.
You should change the link back to just "style.css" once you think the caching timeframe is over (maybe a week?) so normal caching can resume.
;)