I am setting up a Squid caching proxy server at work to cache some map data for one of our web apps. My wpad.dat works great in Firefox & Chrome but it does not work correctly with Internet Explorer. Does anyone know how to get IE to properly use a wpad.dat file? My current file is below, I have had it working when I run all data for the site through the proxy, but that is not what I want to do. Could it partially be due to the fact that the web app is a Silverlight app?

function FindProxyForURL(url, host) 
    if (shExpMatch(url, "*/ArcGIS/rest/services/*/tile/*") && isInNet(myIpAddress(), "", ""))
        return "PROXY; DIRECT";
        return "DIRECT";
  • Are you saying that IE isn't using the wpad.dat file at all or are you saying it isn't behaving correctly? – Rob Moir May 14 '13 at 14:38
  • Is "Automatically Detect settings" ticked in Internet Options->Local Area Network Settings? Do you know if the clients are pulling the wpad.dat file?? – Chris S May 14 '13 at 14:46
  • I have the "Automatic configuration script" setting enabled and set correctly and have verified that my machine is pulling down the wpad.dat file using Wireshark. However if the first condition in the wpad.dat file is not met then it doesn't bother checking for anything else it needs to for the site. – smccloud May 14 '13 at 20:16
  • Do you have more than one network card, interface or IP address assigned to the computer? e.g., serverfault.com/questions/54232/… – Chris J Mar 6 '15 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.