Firefox Caching: Get latest page every time

Internet Explorer has a fantastic Web Cache option in Tools > Internet Options > Browsing History > Settings > called “Check for newer versions of Stored Pages:’. This option lets you override Internet Explorers smart caching option.

This is useful when you’re visiting websites that frequently have changing, dynamic data, but their meta tags or HTTP Content headers don’t tell your browser to get a new copy of the page every time. All you have to do is switch the setting to “Every time I visit the webpage“.

Low and behold, Firefox actually has an equivalent setting that allows the browser to check for newer versions of the page each and every time. It’s called browser.cache.check_doc_frequency and it can be found in the about:config menu of Firefox. Who knows why it’s not in any of the GUI options of settings for Firefox. They must be crazy.

To access it, simply enter this into your URL location box in Firefox:

about:config

Then find the browser.cache.check_doc_frequency and change it to 1. This will force Firefox to check for a newer version of the page you’re viewing, regardless of the servers instructions, or Firefox’s default settings.

This is useful because by default Firefox is set at 3 which means that it will always used an old, cached version of the web page, unless the server specifically indicates a newer one is available. You never know if you’re getting the right stuff.

For reference, valid values for browser.cache.check_doc_frequency are:

0 – Check for a new version of a page once per session (a session starts when the first application window opens and ends when the last application window closes).

1 - Check for a new version every time a page is loaded.

2 – Never check for a new version – always load the page from cache.

3- Check for a new version when the page is out of date. (Default)

Leave a comment

16 Comments.

  1. I don’t know how many sites I checked before I found your helpful instructions. It was driving me crazy – I was changing settings in the widget section of WordPress and every time I checked the page no changes had been made. Have bookmarked your site for any future help I may need.
    Many, many thanks.
    Peter

  2. Many Many Thanks! After our Company updated its website we received several complaints from people who continued to see the old site, myself included. I was appointed to find out why.
    I knew IE had the command so was surprised not to find it in Firefox.
    I cannot see why anyone would want to see an obsolete version.
    Anyway thanks for providing the solution.
    Gerry Jenkinson.

  3. I also offer my thanks to the author for this tip. I think the Firefox development team have lost the plot not having this option easily selectable in options.

  4. Fantastic ! Thank you very much for that tip !
    At least FireFox can work as IE at that issue ;)

  5. At last! This has been bugging me for awhile. I almost switched back to IE because of this cache issue, what a relief!

    • Carl,

      I know! It drove me insane, too.

      Have you used Google Chrome at all? Chrome has very few user-configurable cache options (related to expiration) but I've never had a caching issue… I guess it's just smart that way?

      Love me some Chrome!

  6. Web designers are only interested in the newest page. As most web designers, use Firefox it should be one of the easiest things to adjust. Can't believe IE has one over on FF.

  7. Thanks very much i had been hunting for weeks for a solution. Why this feature was removed from current / recent versions i have no idea.

    It was really annoying as i have to upload picture to my company's server and every time the page reloaded the old page, manual refresh and off we go again and again and again….

    Thank you

  8. Thanks for this post. I was trying to hunt down this setting.

    Greg

  9. On yahoo, it doesn't refresh.. this is so so stupid on FF developers not allowing this option

  10. i cant understand why firefox still doesn't have in OPTIONS the feature "refresh contents everytime visit a page". really stupid indeed!!!!

  11. @Damien Service:

    I couldn't agree more. They might have taken it out as a statement of "our superior browser knows when to…" riff raff, but the reality is sometimes you just don't know.

    Back in the day of dial up connectivity, where bandwidth was incredibly scarce and it could take 30-60 seconds for a page to render a page, caching was incredibly useful. But with todays high speed connections, you're better off spending the extra 250 ms waiting for your browser to obtain the latest page. Honestly, I wish this was default behavior for all browsers.

    Until real intelligent caching is reliable, and web servers are truly standardized among multiple development languages to submit the same http headers (PHP,ASP,CFML…), we should be getting fresh pages with every page visit.

  12. Firefox used to have the equivalent of what IE has but I've noticed for a while that they haven't implemented this feature since somewhere in v2+.

    Whether Mozilla omitted this or decided to abandon this feature is beyond me. They really need to re-introduce this feature back in Options.

Leave a Reply

[ Ctrl + Enter ]

Trackbacks and Pingbacks:


Switch to our mobile site