Gossamer Forum
Home : Products : Links 2.0 : Discussions :

IE4 and caching problem

Quote Reply
IE4 and caching problem
Hi, we have just started using Links, however we seem to have a caching problem of some sort with IE4. Apart from the obvious answer of using something other than the Microsoft virus, does anyone have any suggestions? Once the site is cached once you follow a link, it loads but nothing changes.... We have messed around with <pragma> <no-cache> and a few other things but no difference.

Cheers
Mick

http://www.tablelandsonline.net
Quote Reply
Re: IE4 and caching problem In reply to
I had the same problem, and evidently it's been around for a while http://www.gossamer-threads.com/...m11/HTML/000610.html Prior to working with Links, I had noticed the problem and had zero luck with "pragma no-cache" --it you really test it, you'll find it doesn't do the job (at least on early IE4 and NS4 versions). I'd like to hear if others have figured out exactly when "pragma no-cache" DOES work. I resorted to a work-around that forces a refresh, among other features. See http://4geeks.com/...iframe-layer-reload/
Quote Reply
Re: IE4 and caching problem In reply to
I think I may have found a fix for this problem.

Netscape 4.x and IE 4.x-5.x are all HTTP 1.1 compliant (give or take a few 100 things)... well it appears that they may have ditched the Pragma Nocache thing.

So anyway I did some searching and found that the HTTP 1.1 version is:

Cache-Control: no-cache

I shoved it in to the db_utils.pl file (see below) and as far as I can see the thing now works...

Hope that helps... If it was a bum fix let me know.

Cheers.

Martin
-------

sub html_print_headers {
# --------------------------------------------------------
# Print out the headers if they haven't already been printed.
#
if (!$html_headers_printed) {
print "HTTP/1.0 200 OK\n" if ($db_iis or $nph);
print "Pragma: no-cache\n" if ($db_nocache);
print "Cache-control: no-cache\n" if ($db_nocache);
print "Content-type: text/html\n\n";
$html_headers_printed = 1;
}




------------------
--------
admin@websnail.org
"WEB Special Needs Assoc' Info' Links"