Stuart Henderson wrote:
> This can't work due to problems in IE. Simply set squid up as a
> normal proxy instead.
Due to problems with transparent proxying. It is NOT IE's fault. It
simply (correctly) assumes there is no cache in the path when it is not
using a proxy...
It is technically possible to work around it on most requests by
changing the Squid code to read If-Modified-Since as no-cache if the
user-agent is IE and the request is "accelerated".
For example something like this:
--- client_side.c 2000/01/22 23:59:05 1.1.1.47.6.8
+++ client_side.c 2000/02/11 18:17:42
@@ -802,6 +802,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)
Completely untested. Do not remember the exact User-Agent MSIE browsers
sends and does not have one here to test with, so it may need some
adjusting..
-- Henrik Nordstrom Squid hackerReceived on Fri Feb 11 2000 - 12:18:23 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:51:11 MST