Monday, November 16, 2009

Browser reload

A question for the tech-heads:
It seems to me web browsers typically either: 1) Load the page you ask for, from cache (from disk) if it has it, regardless of whether the page has been changed or 2) loads the page afresh, regardless of whether it's in the cache.

Safari used to do the latter, now it seems to do the former, which is quicker, but you have to refresh to be sure you have the latest version. So why doesn't the browser just ask the server if the page has been updated since last visit, and then refresh the page only if it's been changed?

posted by Eolake Stobblehouse @ Monday, November 16, 2009   11 comments links to this post

11 Comments:

At 16 Nov 2009, 17:36:00, Anonymous neeraj said...

So why doesn't the browser just ask the server if the page has been updated since last visit, and then refresh the page only if it's been changed?

In Opera you can assign its behaviour at Preferences/Advanced/History: "Check website for a newer version never/always/every xx minutes".

In Firefox I have not found it yet in the "normal" preferences, probably it is somewhere in "about:config" (it's for advanced preferences, there you have to know exactly what you are doing).

In Safari I don't know, but usually this possibility of assigning it should be there somewhere. Maybe the different behaviour is just since your OS update, so the preferences are now different compared to before?

 
At 16 Nov 2009, 17:42:00, Anonymous neeraj said...

Addendum: Maybe that's a bit different from what you are looking for.

 
At 16 Nov 2009, 17:47:00, Blogger eolake said...

No, it might be helpful.
Except I don't find such a preference in Safari.
I love Apple's apps, but I have to admit, often the Preferences are rather basic. They sometimes go a *little* bit overboard in simplification.

 
At 16 Nov 2009, 18:04:00, Anonymous neeraj said...

Maybe loading "about:config" like a website gives you the advanced preferences in Safari, as it is in Firefox?

 
At 17 Nov 2009, 04:11:00, Blogger Alex said...

I was going to say "oh that's easy in Firefox". I remember that option in Netscape, and I believe in SeaMonkey, but now, in Firefox (latest version) I can't find it even in the help.

Must still be there, but there was the options

always from cache
always from server
from server if newer

Just what you are looking for.

Will look some more (but not that hard)

 
At 17 Nov 2009, 04:24:00, Blogger eolake said...

Right! I remember those options from Nescape Navigator. Rather amazing, since it's been almost a decade since I used it.

 
At 17 Nov 2009, 15:47:00, Anonymous Chris S. said...

It can be complicated further by http page attributes supplied by the server (and proxies) as well. The server can mark a page as not to be updated until some date, and it can mark the page as always update. And other variations too. How browsers respond to that and how they combine that with your own choices to make the decision can be baffling and open to interpretation. As a programmer even when I intentionally tag images or static pages as good until some date browsers will often request the content anyway. And then many web programmers don't bother tagging pages for efficiency anyway.

 
At 17 Nov 2009, 15:49:00, Anonymous Chris S. said...

Note a useful hot key in Firefox is Ctrl-F5. Not sure about other browsers but this can be used like F5 to reload a page but forcing refresh from server.

 
At 17 Nov 2009, 16:50:00, Blogger eolake said...

Efficience of the web or efficiency in their work?

I remember forced refresh. Some years ago it was a big deal to me, sometimes none of the browsers wanted to reload properly. But it's never been an issue with safari. (Fortunately, since it does not seem it has the command.)

 
At 21 Nov 2009, 13:26:00, Blogger ilterocktive said...

That's why I like IE.
Almost everything is under my control on all of its behaviour.
It is in:
Tools > Internet Options > (General) > Browsing History
for IE.
Sorry, I can't even deal with Firefox or Safari, because I don't use the latter and I hate the options menu of Firefox.

 
At 27 Nov 2009, 00:22:00, Blogger Pascal [P-04referent] said...

I've got IE, and Ctrl-F5 has become a reflex when I connect to some regular sites.

 

Post a Comment

Links to this post:

Create a Link

<< Home


Website Counter