You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@covalent.net> on 1997/11/03 00:54:25 UTC

IE4 problems

Not acked.


------- Forwarded Message

From: "Andrew Hannam" <an...@gemcorp.com.au>
To: <Ap...@Apache.Org>
Subject: Caching problem with IE4 and mod_proxy + fixes for Apache1.3b2
Date: Mon, 3 Nov 1997 09:49:13 +1000
Message-ID: <01...@andrewh.gc.gemcorp.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3

IE4 seems to behave extremely slowly when the rear end of apache has a slow
link.
This is due to many requests that should be getting cached not getting
cached.
The culprit is the "Refresh" button which not only causes apache to re-read
the file from the Internet but also prevents apache from keeping a copy of
this newly updated page in its own cache.
At appears that as IE4 has its own local cache, it uses If-Modified-Since on
a pragma-NoCache request to perform the refresh. This apache handles by
forgetting its own cache entry - requesting a new copy with an
If-Modified-Since header which when the server replies with a 304 causes
apache to not store the page in its cache.
The solution was to change Apache to handle the pragma-NoCache the same way
that IE4 does, that is send an If-modified-Since relative to its own cache
file.

The diffs are actually very simple and are listed below

proxy_cache.c
202c202
<   Explain3("GC Unlinking %s (expiry %ld, garbage_now %ld)", filename,
fent->ga
rbage_expire, garbage_now);
- ---
>   Explain3("GC Unlinking %s (expiry %ld, garbage_now %ld)", filename,
fent->ex
pire, garbage_now);
493c493
<   strlen(url) < 1024 && !proxy_liststr(pragma, "no-cache") &&
- ---
>   strlen(url) < 1024 &&
526a527
>   if (!proxy_liststr(pragma, "no-cache")) {
564a566
>   }


- -----------------------------------------------------
Andrew Hannam
Global Electronic Merchandising and Marketing Pty Ltd

------- End of Forwarded Message