DelphiFAQ Home Search:



Databases
InterBase, MS-SQL, mysql, Oracle
Programming
C#, C++, Delphi, Java,
JavaScript, perl, php, Visual Basic, VBScript
Linux
Apache, Network, Shell
Web Publishing
JavaScript, perl CGI, VBScript, Web Hosting
Windows
Apache, File Types, Internet Explorer,
Network, Printing, Processes
Outside the Cube
Auto, Computer Hardware,
Finances, Dating Scams,
Household, Male Dating Scammers,
Other Scams, Travel

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Featured Article

Updated style sheet not reloaded in Firefox 1.0

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

Another idea:
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.


Generated 0:04:39 on Sep 19, 2014