Outside the Cube (7633)
Web publishing (65)
about DelphiFAQ (14)
perl CGI (3)
Web Hosting (8)
New related comments
Number of comments in the last 48 hours
Regular expressions in Homesite
Googlebot requested a document that does not exist
Updated style sheet not reloaded in Firefox 1.0
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:I viewed my own web site in Firefox 1.0, and noticed an error in the style sheet. So I updated the style sheet and hit "reload" in the browser. The changes did not show any effect.
Answer:Seems that there is a problem with how Firefox handles the cache. We have seen the same problem with FF and it did not happen with Internet Explorer (IE 6).
When you close Firefox and start a new browser instance, it will load the CSS freshly of course.
Note: Firefox has an advanced two-stage caching system (disk cache and RAM cache). That's why closing FF seems to be required.
The whole problem could also be resolved by upgrading your web server, in case you use Apache. I read tha about a known problem with Apache where it serves cached pages with a default MIME type header, regardless of the header set in the orignal file.
For more information see here:
Bug description at apache.org
if your pages are generated dynamically, you could add a random string to the CSS url, e.g. "?r=123" - where 123 is a random number. This will force a reload all the time. On the other hand, you probably won't change the style sheet much in the future anyway.