The problem is that you are running a transparent proxy and thereby
confuses things (both the proxy and the browser is technically working
correctly according to specifications, but ...)
Attached is a small hack you can use to make the reload button work when
running a transparent proxy and your users are using Microsoft IE
browsers, but please note that this will have a quite negative effect on
your hit ratio if many of your users are using IE browsers.
The best fix is to not run the proxy "transparently".
-- Henrik Nordstrom Squid hacker Mehmet Nuri ELMA wrote: > > Hi gurus, > > > I use squid 2.3 Stable 4. I have problem about refreshing site that is > updating every day, like newspapers. > I use Internet Explorer and I get always get old web pages. I refresh > using CTRL+refresh or shift+refresh, but it doesn't work. > When I use Netscape, I refresh the web pages using shift+reload, new > pages come, > > What is the problem, can you help me? > > thank you for your considerations, > > > Mehmet Nuri ELMA >
--- 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.htmlReceived on Sat Sep 30 2000 - 16:29:46 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:55:31 MST