鱿鱼缓慢的初始网页加载

我相信我已经设法成功地在我的debian 7服务器上安装鱿鱼,但是无论何时我尝试使用它加载第一个来自域的速度非常慢,来自同一个域的后续页面加载速度加快。 我怎样才能加快初始加载/查找?

即时通讯使用Debian 7和鱿鱼3.1.20。

我的squid3 -v是;

configuration选项:'–build = x86_64-linux-gnu''–prefix = / usr''–includedir = $ {prefix} / include''–mandir = $ {prefix} / share / man'' – -infodir = $ {prefix} / share / info''–sysconfdir = / etc''–localstatedir = / var''–libexecdir = $ {prefix} / lib / squid3''–srcdir ='。 '–disable-maintainer-mode''–disable-dependency-tracking''–disable-silent-rules''–datadir = / usr / share / squid3''–sysconfdir = / etc / squid3'' –mandir = / usr / share / man''–with-cppunit-basedir = / usr''–enable-inline''–enable-async-io = 8''–enable-storeio = ufs, aufs,diskd'–enable-removal-policies = lru,heap''–enable-delay-pools''–enable-cache-digests''–enable-underscores''–enable-icap-client “–enable-follow-x-forwarded-for”–enable-auth = basic,digest,ntlm,negotiate“–enable-basic-auth-helpers = LDAP,MSNT,NCSA,PAM,SASL, SMB,YP,DB,POP3,getpwnam,squid_radius_auth,多域NTLM'–enable-ntlm-auth-helpers = smb_lm,'–enable-digest-auth-helpers = ldap,password'' – enable-negotiate-auth-helpers = squid_kerb_auth''–enable-external-acl-helpers = ip_user,ldap_group,session,unix_group,wbinfo_group''–enable-arp-acl''–enable-esi'' – enable-zph-qos'–enable-wccpv2''–disable-translation''–with-logdir = / var / log / squid3''–with-pidfile = / var / run / squid3.pid' “–with-filedescriptors = 65 536''–with-large-files''–with-default-user = proxy''–enable-linux-netfilter''build_alias = x86_64-linux-gnu''CFLAGS = -g -O2 -fPIE- fstack-protector -param = ssp-buffer-size = 4 -Wformat -Werror = format-security -Wall''LDFLAGS = -fPIE -pie -Wl,-z,relro -Wl,-z,now''CPPFLAGS = -D_FORTIFY_SOURCE = 2''CXXFLAGS = -g -O2 -fPIE -fstack -protector -param = ssp-buffer-size = 4 -Wformat -Werror = format-security'–with-squid = / tmp / buildd / squid3 -3.1.20

我的squid.conf是

acl mynetwork src acl safe_ports port 80 acl connet方法connet http_access允许mynetwork http_port 3128 forwarded_for off http_access拒绝全部

这是一个从我的debian服务器,几乎立即完成wget的一个例子。

– 2014年1月2日12:42:23 – http://bbc.co.uk/解决bbc.co.uk(bbc.co.uk)… 212.58.253.67,212.58.251.195连接到bbc .co.uk(bbc.co.uk)| 212.58.253.67 |:80 …已连接。 发送HTTP请求,等待响应… 301永久移动位置: http ://www.bbc.co.uk/ [下列] – 2014-01-02 12:42:23 – http://www.bbc .co.uk /正在parsingwww.bbc.co.uk(www.bbc.co.uk)… 212.58.244.67,212.58.244.66连接到www.bbc.co.uk(www.bbc.co.uk) | 212.58.244.67 |:80 …已连接。 发送HTTP请求,等待响应… 200 OK长度:111538(109K)[text / html]保存到: index.html' 100%[=============================================================================>] 111,538 --.-K/s in 0.06s 2014-01-02 12:42:23 (1.79 MB/s) - index.html'保存[111538/111538]

我也检查了ps aux和squid似乎没有把任何重要的负载在服务器上。

我还可以做些什么?

我也遇到了鱿鱼(来自Cygwin v3.3.3)缓慢,并通过在我的squid.conf中放入以下指令解决了这个问题:

dns_v4_first on

就是这样,谢谢。 inheritance人/etc/resolv.conf中发生了什么是localhost和我的ISPS DNS。 显然这是使用本地主机来查找做DNS查询,当它超时它失败了我的ISPS DNS立即find主机,并加载页面。 修复它我添加了dns_nameservers到squid.conf并重新启动鱿鱼