Forum Moderators: not2easy

Message Too Old, No Replies

Getting off-page css file to reload after changes.

         

kanetrain

4:41 pm on May 3, 2006 (gmt 0)

10+ Year Member



I made some significant changes to the css styleshheet that's used on my front page (and many other pages of my site as well).

After making the chnages, I went back to my front page, and brought up my site. It looked weird, becuase the new html loaded (which also changed a bit) but it didn't call in the revised stylesheet.... it used the old one (really the same css file, but without the changes)... presuably cached on my machine.

My question is: Is there a way to force all users to grab a fresh copy of that stylesheet? I know I can rename it, but I don't want to do that. It's my defualt stylesheet and it's called in on several other areas of the site. I could make a copy and call in both, but I don't want two copies of the same thing...(and which would I change in the future?).

I'm stuck. We have a lot of returning visitors... over 10K a day. I'd hate for them to see the new front page with the old stylesheet. It really looks bad.

Any help or ideas would be greatly appreciated.

Moby_Dim

7:27 pm on May 3, 2006 (gmt 0)

10+ Year Member



Just an idea, not tested yet (disclaimer ;) Do not know how you manage your site.

Suppose your css file is my_css.css. Make a copy of this one and give it a name my_css.txt, for example. Then use SSI (include file or include virtual) right in the end of <head> element like onpage <style> (hence, this ssi will override cached actual css file data). Got this? And try meta no-cache maybe (never used this myself also). Hope ssi trick will help.