in Search
Untitled Page

ARCHIVED FORUM -- April 2007 to March 2012
READ ONLY FORUM

This is the first Archived Forum which was active between 17th April 2007 and 1st March February 2012

 

Latest post 08-29-2009 3:28 PM by tournedos. 19 replies.
Page 1 of 1 (20 items)
Sort Posts: Previous Next
  • 05-21-2009 7:47 AM

    Forum and Firefox - a tweak to save your sanity


    Warning: please follow the instructions closely if you want to use this tweak. It has been tested on Firefox 3 on Windows, Mac and Linux, so it should be safe to use - but misconfiguration may create problems elsewhere! You will also need to use your "reload" button on the forum much more often than before to see the latest changes. However, in general, you should be happier with this tweak.


     

    As especially the Wednesday© thredders are painfully aware of, using Firefox has been partly quite annoying since the forum upgrade. After each reload or visiting a link, you lose the context on the page where you were and you are returned to the top of the page.

    I investigated the problem, and the cause of it is some HTTP headers that either the web server or Community Server is sending with each page. These are such as

    • Expires: -1 (meaning the page has expired sometime with the dinosaurs)
    • Cache-Control: no-cache, no-store (instructing the browser and proxies to never store the page)
    • Pragma: no-cache (ditto)

    Without getting into details, these are supposedly there because the pages are dynamic in nature, and on each visit, they should be always reloaded instead of getting them from the browser cache. All fine in principle, but this also causes Firefox to lose context -> you will be maniacly trying to figure out where you were and what is actually new.

    For the most part, this is just unnecessary. And getting around this is what I'm getting at in this "workshop".

    -mika

  • 05-21-2009 8:42 AM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    Fortunately, Firefox has been made extensible with plugins and add-ons, which can be used to add new features or alter its behaviour. As a further strike of luck, we're not alone with this problem, and there already exists an add-on that can be used for our current aim. This is called BetterCache, and is available here:

    https://addons.mozilla.org/firefox/addon/6371

    You can install it from the link as you would any Firefox add-on. Next we need to configure it (sorry - my screenshots are from a Finnish Firefox, but all your buttons should be in the same places, although with different text Smile)

    Select Tools | Add-ons from the Firefox menu, and you should get a window similar to this (click on "Extensions" on the upper row to get a list of add-ons, then select the BetterCache entry):

     


    -mika

  • 05-21-2009 8:45 AM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    Now, click on the Settings button on the BetterCache bar. You will get a window similar to the one below. These settings are good at the defaults, so leave them like this:

     

     


    -mika

  • 05-21-2009 8:52 AM In reply to

    • Quim43
    • Top 75 Contributor
      Male
    • Joined on 11-15-2007
    • Tarragona (Catalonia)
    • Posts 1,030
    • Gold Member

    Re: Forum and Firefox - a tweak to save your sanity

    It works!!

    Thank You very much. You are right it was a pain in the *ss.

    Quim

  • 05-21-2009 8:55 AM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    Now select the Always-cache list tab. On a fresh install of BetterCache, there's already one entry on the list with a mime-type of '*'. Select it and click "Remove". Otherwise you will run into problems on other web sites!

    Then, fill in the fields like below. This data means that we want Firefox to cache every single object, be it a page, image, or whatever, under the server space http://forum.beoworld.org/ :


    -mika

  • 05-21-2009 8:57 AM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    Now, remember to click on "Add" to actually add this rule into the list below, and then close the settings window with "Ok" [sic].

     


    -mika

  • 05-21-2009 9:05 AM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    You can also close the add-on list window now. At this point, we have now modified the behaviour of Firefox so that it will cache everything from forum.beoworld.org, no matter what the server is trying to instruct. This means that:

    • you can move back and forth between pages of topics without them reloading all the time
    • you can follow a link, use the back button, and still end up where you started
    • you can reload a topic without always ending up at the top of the page or your last post (hello, Wed©thredders)
    • on a slow connection, you will probably experience much faster Beoworlding
    • as a side effect, the load on the forum web server is greatly reduced

    However, there are some downsides. While writing this, I noted the following "problems":

    • after editing your post or replying to somebody, you may need to click reload before you see your changes
    • not seen so far, but it is possible that BetterCache has bugs and alters something elsewhere than on Beoworld

    I'd be glad if others tested this as well, and reported if they see any problems. If needed, I think it should be possible to configure BetterCache so that it will only force cacheing on topics and topic lists, and leave editing posts alone.

    -mika

  • 05-21-2009 9:06 AM In reply to

    • Puncher
    • Top 10 Contributor
      Male
    • Joined on 03-27-2007
    • Nr. Durham, NE England.
    • Posts 9,588
    • Founder

    Re: Forum and Firefox - a tweak to save your sanity

    The bad news is that I will now post at random page positions on a Wednesday©Devil

    I have a counter-plugin!

    Generally speaking, you aren't learning much if your lips are moving.

  • 05-21-2009 9:28 AM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    This topic should now be ready as far as the instructions go - Quim, please review all steps, you may have now a setup that caches too much and you will run into problems later... (remove the '*' entry from the list).

    -mika

  • 05-21-2009 9:32 AM In reply to

    • Quim43
    • Top 75 Contributor
      Male
    • Joined on 11-15-2007
    • Tarragona (Catalonia)
    • Posts 1,030
    • Gold Member

    Re: Forum and Firefox - a tweak to save your sanity

    Done!

    Thanks again.

    Quim

  • 05-21-2009 10:12 AM In reply to

    • darren
    • Top 500 Contributor
    • Joined on 03-28-2007
    • Netherlands
    • Posts 164
    • Bronze Member

    Re: Forum and Firefox - a tweak to save your sanity

    Just followed your excellent install notes and installed the add-on to firefox on my mac.

     

    All working as described, thanks.

  • 05-21-2009 11:30 AM In reply to

    • Gerd
    • Top 150 Contributor
    • Joined on 04-20-2007
    • Germany
    • Posts 523
    • Bronze Member

    Re: Forum and Firefox - a tweak to save your sanity

    Works like a charm - Thanks!

  • 05-21-2009 1:35 PM In reply to

    • Stonk
    • Top 50 Contributor
    • Joined on 04-16-2007
    • Marlow, Bucks, UK
    • Posts 1,688
    • Founder

    Re: Forum and Firefox - a tweak to save your sanity

    Weyhey it works! One happy bunny here. Well done Mika. Yes -  thumbs up  Now that's one computer problem solved & I only have to worry about the problem between my keyboard and chair!!!

     

    Mods perhaps this should be a sticky??? Was really a bugbear for many.

                                                                                                  

    If you think nobody cares, try missing a couple of payments.

  • 05-21-2009 2:46 PM In reply to

    • Tom
    • Top 25 Contributor
      Male
    • Joined on 04-16-2007
    • Luxembourg
    • Posts 3,175
    • Bronze Member

    Re: Forum and Firefox - a tweak to save your sanity

    It works! Thanks a lot for your work, Mika! Yes -  thumbs up

    Music washes away from the soul the dust of everyday life. - Berthold Auerbach

  • 05-21-2009 3:02 PM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    And right now I'm on FF 3.0.3 on Linux, so this seems to be truly cross-platform as well Smile

    Looks like it's safe to use - one thing I noted is that when you go from page to page on topic listings (or inside a topic), you will have to click on reload on each page to see possible changes. This is expected behaviour when you think about it, but it got me at first as well...

    Another good thing seems to be that this fixes the smilies rendering problem for me at least - I no longer need to add a space after them when they are at the end of a line. Previously they would never appear otherwise, or only after several jumps between compose - preview.

    EDIT: I have updated the steps above to make them clearer - no change in the actual procedure.

    -mika

  • 05-21-2009 3:32 PM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    I can confirm that your solution works very well..

    Thank you very much for all your research...

    Regards Keith....

  • 05-21-2009 5:34 PM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    Worked for me!

     

    Vikinguk

    I used to be indecisive, now I'm not so sure. [W C Fields]

  • 05-25-2009 4:02 PM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    But........... as warned in the first entry of this thread, you do need to keep using your refresh or reload button. Clicking links in the forum can just bring up the last cached version of the page and will fail to show subsequent posts until you refresh the forum page or just routinely hit refresh when you get to the end of a thread (when you will frequently find that you were actually viewing a cached out of date page.)

    Vikinguk

    I used to be indecisive, now I'm not so sure. [W C Fields]

  • 05-25-2009 4:27 PM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    You're right - sometimes really old versions can come up from the cache, especially if you have been following "latest post" links before, and never the "clean" url without the #2739472 or whatever anchor in the end.

    Another thing that seems problematic is editing your old posts multiple times - sometimes you get a really old version from the cache and it can be confusing. I have found it safest to click on reload before "edit". As I said earlier, I may try to develop this further so that editing posts are excluded from the "forced cache".

    But all in all, now that I'm behind a mostly very slow GPRS link, using the forum is much more enjoyable. The real test will be on Wednesday©, though Smile

    -mika

  • 08-29-2009 3:28 PM In reply to

    Re: Forum and Firefox - a tweak to save your sanity

    I recently upgraded to Firefox 3.5.x and noticed that it behaved better in some other web pages that used to have a similar problem. As a test, I disabled BetterCache and it seems that Beoworld is cured as well! Finally the same behaviour as pre-forum upgrade Smile

    I'm not sure if I like FF 3.5 generally - they have once again moved things around just for the sake of moving things around - but if you decide to upgrade, you might want to revert this tweak as well. It's still beneficial on a very slow connection, as it avoids reloading the pages every time you click on "back" and so on.

    -mika

Page 1 of 1 (20 items)