<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Hello, we have installed Varnish on one of our RedHat 5 Linux machines. I have pasted the configuration below. I did remove the real hostnames and IP addresses from the configuration.</div>
<div> </div>
<div>The configuration works fine with Mozilla for sites I have defined, but on IE 7 the “hostname1” site does not completely load. I see the favicon.ico and the title of the page, but the site continues to load without completing or sometimes completing
after a long time (minute plus) to load. The second site “shared_73_165” loads just fine. </div>
<div> </div>
<div>Please note a week ago I had the same sites defined, but IE had problems loading the “shared_73_165” site but loaded the “hostname1” site just fine. I assume there is some slight difference in the configuration between this week and last to make this
change occur, but I don’t know what it would be. Mozilla has always loaded both sites fine.</div>
<div> </div>
<div> </div>
<div>I am having trouble identifying the root cause of the problem. Can anyone help me with trying to determine why IE 7 is taking so long to complete the loading of the page if it completes at all? </div>
<div> </div>
<div>I can also add that a when I look at the varnishncsa output I see that with IE 7 that not all of the elements on the HTML page are being requested, but through Mozilla I do see all the requests. I can also tell you both sites work fine if I bypass Varnish.
It also does appear that IE 8 has the same issue although I have not tested with it as much as I have IE 7.</div>
<div> </div>
<div>Any help that someone can provide would be appreciated?</div>
<div> </div>
<div> </div>
<div> </div>
<div>backend hostname1</div>
<div>{</div>
<div> .host="xxx.xxx.xxx.xxx";.port="80";.max_connections=200;.connect_timeout=10s;.first_byte_timeout=10s;</div>
<div> .between_bytes_timeout=10s;</div>
<div>}</div>
<div>backend shared_73_165</div>
<div>{</div>
<div> .host="xxx.xxx.xxx.xxx";.port="80";.max_connections=200;.connect_timeout=10s;.first_byte_timeout=10s;</div>
<div> .between_bytes_timeout=10s;</div>
<div>}</div>
<div> </div>
<div>sub vcl_recv</div>
<div>{</div>
<div> # Set Backend Server</div>
<div> if (req.http.host ~ "^hostname1.com" || req.http.host ~ "^test.hostname1.com") { set req.backend = hostname1; }</div>
<div> else { set req.backend = shared_73_165; }</div>
<div> </div>
<div> # Set HTTP Header NS-Client-IP so Apache can log client's IP address.</div>
<div> set req.http.NS-Client-IP = client.ip;</div>
<div> </div>
<div> # If HTTP Header Cache-Contro="no-cache" then purge any cache page that may exist for that URL and pass request on.</div>
<div> if (req.http.Cache-Control ~ "no-cache") { purge_url(req.url); return(pass); }</div>
<div> </div>
<div> # If request is not a valid HTTP Method pipe it to the backend it is not cacheable.</div>
<div> if (req.request!="GET" && req.request!="HEAD" && req.request!="PUT" && req.request!="POST" &&</div>
<div> req.request!="TRACE" && req.request!="OPTIONS" && req.request!="DELETE")</div>
<div> { return (pipe); } /*Non-RFC2616*/</div>
<div> </div>
<div> # If request is not a GET or a HEAD then pass it through since its not cacheable.</div>
<div> if (req.request!="GET" || req.request!="HEAD") { return (pass); }</div>
<div> </div>
<div> # Unset cookies on Drupal specific files that should be cached.</div>
<div> if (req.url ~ "^/(files|misc|sites|themes|modules)/" || req.url ~ "\.(txt|ico)$") { unset req.http.Cookie; }</div>
<div> </div>
<div> # If request requires Authentication or has a Cookie then it is not cacheable.</div>
<div> if (req.http.Authorization || req.http.Cookie) { return (pass); }</div>
<div> </div>
<div> # Normalize and compress content if Encoding starts with gzip or defalte but do not compress binary files.</div>
<div> # @see: <a href="http://varnish.projects.linpro.no/wiki/FAQ/Compression">
http://varnish.projects.linpro.no/wiki/FAQ/Compression</a></div>
<div> if (req.http.Accept-Encoding) {</div>
<div> if (req.url ~ "\.(jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg)$") { remove req.http.Accept-Encoding; }</div>
<div> elsif (req.http.Accept-Encoding ~ "gzip") {set req.http.Accept-Encoding = "gzip"; }</div>
<div> elsif (req.http.Accept-Encoding ~ "deflate"){set req.http.Accept-Encoding = "deflate"; }</div>
<div> else {unset req.http.Accept-Encoding; }</div>
<div> }</div>
<div> </div>
<div> # If requested page is currently being processed on another thread to a backend server, server cached page if its not older than 30s.</div>
<div> set req.grace = 30s;</div>
<div> </div>
<div> # Fall back to the default vcl_recv which will call the return(lookup);</div>
<div>}</div>
<div> </div>
<div>sub vcl_pipe</div>
<div>{</div>
<div> set req.http.connection = "close";</div>
<div> # Fall back to the default vcl_pipe which will call return(pipe);</div>
<div>}</div>
<div> </div>
<div>sub vcl_fetch</div>
<div>{</div>
<div> # If the response from the backend is not a 200, 203, 300, 301, 302, 404 or 410.</div>
<div> if (!beresp.cacheable) { return (pass); }</div>
<div>}</div>
<div><font size="2">--------------------------------------------------------<font face="Arial, sans-serif" size="3">
<br>
</font><font face="Palace Script MT, cursive" size="5"><b>Raymond Bacion</b></font><font face="Arial, sans-serif" size="3"> </font></font></div>
<div><font face="Arial, sans-serif" size="3"> </font></div>
<div style="padding-left: 18pt; text-indent: -18pt; "><font face="Arial, sans-serif" size="2"><b>ITSD Operating System Group</b><font size="3">
<br>
</font><font size="1">Phone: (573) 522-1468</font><font size="3"> <br>
</font><font size="1">Fax : (573) 522-1384</font><font size="3"> <br>
</font><font size="1">Email: Ray.Bacion@oa.mo.gov</font><font size="3"> </font></font></div>
<div> </div>
<div><font size="2">-------------------------------------------------------<font face="Arial, sans-serif" size="3"> </font></font></div>
<div><font face="Arial, sans-serif" size="3"> </font></div>
<div> </div>
<div> </div>
</font>
</body>
</html>