Welcome to WebmasterWorld Guest from 54.161.201.189

Forum Moderators: incrediBILL

Firefox .CSS wrong caching

   
6:06 pm on Apr 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

I'm testing a new website which is heavly based on CSS which I have in a separate file.
I found that there's no way for FireFox to read the new CSS file when I upload a new one.
I have to go and manually "clear all" cache in order to read the CSS file again.
Is this normal?

6:24 pm on Apr 18, 2005 (gmt 0)

10+ Year Member



I haven't had this problem, I just update my CSS file and reload the page.

zoo

8:53 pm on Apr 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sometimes firefox, and earlier gecko browsers, have had issues with caching, you're correct.

If you are having problems, all you have to do is hit ctrl + F5 to do a full refresh, plus make sure your caching is set correctly, but a ctrl+F5 does a full reload of all elements, including those pesky css files.

8:07 pm on Apr 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To avoid issues like this, I always use include files or SSI to insert my stylesheet @import statement onto pages. When I make important changes, I save the stylesheet with a new name and change the reference in the include files. Thus the new file will be requested and any cache issues disappear.
5:04 pm on Apr 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



"I make important changes, I save the stylesheet with a new name and change the reference in the include files."

I second Matthew's advice here, I just had a major issue with a new site going up, but still using the old css file, a simple renaming resolved the problem instantly of course. I use a similar method to Matthew, a sitewide template that allows easy changes to the <head> area.

I'd forgotten that while my browsers are all set to refresh correctly, the average browser is set to only refresh when it thinks that file is new, and CSS files seem to pose special issues, even for IE. This seems to be an especial problem when you use the @import method to bring in the stylesheets, one tester could not get the new style sheet up at all, even with a full refresh, ctrl+F5, on Firefox 1.0.2, which is a mystery to me since my browsers all refreshed it fine.

2:52 pm on May 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We are having the same problem with a flash map pulling XML data to format and populate the map. A simple reload pulls new data into Netscape and IE; FIrefox requires that the cache be emptied.
8:06 pm on May 28, 2005 (gmt 0)

5+ Year Member



i use firefox and its not very good for html i cant see scroll boxes!apartly Netscape is good for html!
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month