如何强制 IE 和/或 Microsoft Edge 重新加载 PAC 文件

ske*_*ith 4 windows internet-explorer microsoft-edge

我正在使用托管在我的服务器上的自动配置脚本。它被配置为在 URL 模式上使用代理,但它似乎失败了。更多关于这个问题,它以前在我仍然使用Windows 8.1时在IE11上工作,升级到Windows 10后,pac文件似乎被忽略了。

无论如何,我是否确保使用了 PAC 文件,或者有没有办法让 IE 或 Edge 强制重新加载 PAC 文件?

Jim*_*Jim 6

我无法让 Microsoft Edge 使用我在 Internet 设置中设置的 PAC 文件。它将使用代理服务器。Windows 10 上的 IE 11 使用 PAC 应该不会有问题,就像在 Windows 8 中一样。如果没有,请检查是否Automatically detect settings已启用并尝试禁用它。

为了确保 IE 使用当前的 PAC 文件,您可以禁用缓存:

Key: HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings

Value: EnableAutoproxyResultCache (REG_DWORD)
Run Code Online (Sandbox Code Playgroud)

1(默认)= 启用缓存和 0 = 禁用缓存