Force Firefox to reload from the network on startup

Martin Brinkmann
Oct 3, 2014
Updated • Oct 3, 2014
Firefox
|
9

I have configured the Firefox web browser to load the last session on start. That's great as I can continue work right where I left off the last time without having to use third-party solutions to do so.

About 30 sites are open in the browser at any point in time and while that may seem overkill to some, others work with hundreds of sites and have these sites restored on browser start.

One of the things that has been bugging me for a while was that Firefox loaded the sites in question from cache and not the network. I noticed this especially here on Ghacks where no new comments were listed on first start.

Only a refresh of the page, by hitting F5 or Ctrl-F5, loaded the latest version from the server and displayed that there were new comments available.

Having to hit the F5 key regularly on browser start is not something that I'd call practical. There is however no option in Firefox to modify that behavior. While there are options to modify the caching behavior of the browser, only one seems to have an impact on the issue. By moving all cache to memory, Firefox cannot reload data anymore from cache which means that contents are loaded from the network automatically on start.

There is a second, easier option though. Since the loading requires cache to be present, it is also possible to clear the browser cache on exit automatically so that Firefox cannot use it to load site contents.

Here is how that is done:

  1. Tap on the Alt-key on the keyboard and select Tools > Options from the menu that opens up at the top.
  2. Switch to Privacy in the options window.
  3. Select "use custom settings for history" under history.
  4. Check "clear history when Firefox closes" and click on settings next to it.
  5. Make sure cache is selected here. Make also sure that Browsing & Download History is not as it will get rid of session information if checked which in turn means that Firefox won't be able to load the last session on start.

Firefox clears the cache on exit automatically once setup correctly. This frees up disk space and should not have any ill-effects on the browser or its performance.

All sites restored on start will be loaded from the network from that moment on so that the latest version is always displayed in the browser.

Summary
Force Firefox to reload from the network on startup
Article Name
Force Firefox to reload from the network on startup
Description
Firefox will load websites from cache on start of the browser under certain circumstances. This guide tells you how to force the browser to load from the network at all times.
Author
Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. Pants said on October 3, 2014 at 4:06 pm
    Reply

    “is not something that I’d call practicable” .. it’s “practical” .. only someone from yee olde-timey times (and with a moustache) would say practicable

    1. Professor E. A. Longdon said on October 5, 2014 at 6:18 pm
      Reply

      I agree with you.
      The correct English in this context is practical.
      However, it is not a case of practicable being old and out of date.
      Practical as a synonym of useful, and practicable as a synonym of doable and feasible.
      http://grammarist.com/usage/practical-practicable/

  2. chris said on October 3, 2014 at 11:08 am
    Reply

    I tried that with Firefox ESR 24.8.1 and it caused the firefox.exe process to hang on close for ~10 minutes. As I was tired of waiting, I killed the process from the Task Manager.
    When I restarted the browser, it hanged again: the window didn’t appear for 5+ minutes (firefox.exe process showed 50% CPU usage the whole time, as before).
    After another process killing, I was able to launch Firefox normally.
    So I reverted your changes.
    Does it work better on more recent versions of Firefox?

    1. Martin Brinkmann said on October 3, 2014 at 11:14 am
      Reply

      I have no issues clearing the cache on exit. What happens when you try to clear the cache while the browser is up using Ctrl-Shift-Del?

      1. chris said on October 3, 2014 at 11:31 am
        Reply

        It seems to work as firefox.exe process returns to 0% CPU usage after about 10 seconds (it spiked at 15% for a few moments).

        Found a few support topics about this issue:
        https://support.mozilla.org/en-US/questions/979048
        https://support.mozilla.org/en-US/questions/997918

        And a bug report:
        https://bugzilla.mozilla.org/show_bug.cgi?id=1005487

        Based on the bugzilla comments, it wasn’t fixed in FF30 as stated in “Target Milestone” field, but in FF31.

  3. Pd said on October 3, 2014 at 9:40 am
    Reply

    I think Tools, Options, Tabs, “Don’t load tabs until selected” achieves the same thing, arguably more simply.

    1. happysurf said on October 3, 2014 at 11:32 am
      Reply

      You are right Pd, but unfortunately the pin tabs are always loaded from cache.

      1. happysurf said on October 3, 2014 at 11:55 am
        Reply
    2. Martin Brinkmann said on October 3, 2014 at 9:55 am
      Reply

      Is not that only referring to when tabs get loaded on startup but not how?

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.