Re: [SQU] Cache problems

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 26 Sep 2000 09:35:21 +0200

Patricio Luz wrote:
>
> Hi guys,
>
> I'm somewhat troubled here.
>
> I was using 2.4D4 and WCCP, and started to have some caching problems,
> regarding change of pages on servers. some customers, have their
> personal pages hosted in the net, after they do an update via FTP, and
> then try to access this new pages, they receive from squid the old
> page that was cached.

Your users are most likely running MS IE browsers.

IE does not play well together with transparent proxies due to the
protocol violations introduced by transparent proxies.

Attached is a small patch to work around this problem, however it will
also have a quite negative impact on your hit ratio, but if you want
reload to work in IE when running a transparent proxy you do not have
much else to do..

--
Henrik Nordstrom
Squid hacker

--- squid-2.2.STABLE5.orig/src/client_side.c Wed Sep 22 19:06:53 1999
+++ squid-2.2.STABLE5/src/client_side.c Mon Aug 14 21:20:58 2000
@@ -58,7 +58,7 @@
 #endif
 #endif
 
-
+static const char* str;
 
 #if LINGERING_CLOSE
 #define comm_close comm_lingering_close
@@ -770,6 +770,14 @@
     if (request->cache_control)
         if (EBIT_TEST(request->cache_control->mask, CC_NO_CACHE))
             no_cache++;
+ /* Work around for supporting the Reload button in IE browsers
+ * when Squid is used as an accelerator or transparent proxy,
+ * by turning accelerated IMS request to no-cache requests.
+ */
+ if (http->flags.accel && request->flags.ims)
+ if (str = httpHeaderGetStr(req_hdr, HDR_USER_AGENT))
+ if (strstr(str, "MSIE") != NULL)
+ no_cache++;
     if (no_cache) {
 #if HTTP_VIOLATIONS
         if (Config.onoff.reload_into_ims)

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Sep 26 2000 - 02:00:10 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:55:29 MST