caching problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi there!

how can I IE force to read from local cache first (for example, if no
internet connection has been estableshed - being offline?)

and vis versa?

Thanks for any help


Re: caching problem

Bruno wrote:
Quoted text here. Click to load it

Add the site to favourites, right click the favourites entry and choose
"make available offline".

Quoted text here. Click to load it

Look under the "settings" button in the "general" options tab.
Cheers, Richard.

Re: caching problem

Hello Richard

Thanks for your answer!
Can I programm it within HTML to read from Cache or from the Server first?


Quoted text here. Click to load it

Re: caching problem

Bruno wrote:
Quoted text here. Click to load it
Using PHP you can force a page not to cache using the header function.

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past

I'm sure you can do this with pretty much any language that can output
raw headers

As to the other way around, I'm not so sure.


Re: caching problem

oeb wrote:

Quoted text here. Click to load it

Indeed, or with no scripting at all, just configure the server to send the
right headers.

http-equivs would probably work too, if you can't change server settings.

Quoted text here. Click to load it


Re: caching problem

On Tue, 29 Nov 2005, Jim Higson wrote:

Quoted text here. Click to load it

Well, it'll generate some HTTP headers which propose that behaviour to
clients and proxies.  Whether they honour that proposal is not under
your control (often expressed by the slogan "force does not work on
the WWW").

Quoted text here. Click to load it

Agreed.  However, such a sledgehammer approach is rarely needed, and
can do more harm than good.  I'd recommend a careful read of Mark
Nottingham's tutorial /

Quoted text here. Click to load it

Doubtful: see

Note also that once a page has been sent out without appropriate cache
control, and has been cached, there is nothing you can do to update it
from the server side, no matter how strongly you try.  The client (or
proxy) simply WILL NOT look for a new version until it is good and
ready; and then, it will see that there is a new version, and will
fetch it, no matter what the (new) cache control headers say.  I've
seen people driving themselves demented trying to force a page update
through, because they were confused about this.  I'm not suggesting
that *you* are, but there might be someone reading this who could be
helped.  And leaving no-cache headers lying around the place is not
good for the perceived responsiveness of a web site.

Of course, none of this answers the original poster's question!! HTML
(itself) is no way to control a browser's user options.  Not even IE.
I suppose the best offer that a server can make is to set appropriate
cacheability headers (see the tutorial for suggestions), and leave the
user to make their own browser setting choices.

Site Timeline