火狐 While an individual DNS request often takes small time to execute, when the primary DNS server is overloaded or unavailable it can take quite sometime to resolve your requests.而个别的DNS的要求,往往需时小的时间来执行,当主DNS服务器是超载或无法使用它可以需要相当一段时间来解决您的要求。 Now what has that to do with improving Firefox performance?现在有什么要与改善Firefox的表现?

Firefox makes DNS requests to convert host name (like blog.taragana.com) to IP addresses (like 72.36.134.131), which is then used to fetch the web page. Firefox的使DNS请求转换为主机名称(如blog.taragana.com )的IP地址(如72.36.134.131 ) ,这是当时用来撷取网页。 To reduce load on DNS servers and to speed up response time, Firefox caches DNS results.以减少负荷的DNS伺服器和加快响应时间, Firefox的缓存的DNS的结果。 In Firefox, by default, the DNS requests are cached for only 1 minute.在Firefox中,默认情况下, DNS请求缓存只有1分钟。 Firefox performance can be significantly improved by increasing the DNS cache time. Firefox的表现可显着改善,增加DNS缓存时间。

1. 1 。 To do that type about:config in the address bar and press Enter.这样做,键入关于:配置在地址栏中,然后按下ENTER 。
2. 2 。 Then right click on the preferences table and select New->Integer.然后按一下滑鼠右键,偏好表,并选择新“ ->整数。
3. 3 。 Type preference name as: Network.dnsCacheExpiration and Integer value as 3600 .类型偏好设定名称为: network.dnscacheexpiration和整数价值3600
4. 4 。 This will increase the DNS expiration cache time to 1 hour.这将增加的DNS缓存到期时间为1小时。 You may further increase it if you so wish.您可能会进一步增加,如果您希望这样做。

There is a potential downside to increasing the cache time to very large values.有是一个潜在的坏处,以增加高速缓存的时间非常大的价值。 Web service providers often use round-robin DNS to provide load balancing (and also increase reliability) with multiple servers on different IP addresses. Web服务提供者通常是使用轮循环赛的DNS提供负载平衡(也增加可靠性)与多台服务器上不同的IP地址。 Caching the DNS to very long period prevents them from providing you with valid website addresses when one or more of their server has gone down.缓存DNS来很长时间阻止他们为您提供有效的网站地址,当有一个或更多的服务器已经减少。 It also prevents websites running on dynamic DNS services from giving you the latest IP addresses of such sites.它还可防止网站上运行的动态DNS服务,从给你最新的IP地址,这些工地。 However with a reasonable value of 1 hour you are fine.但一个合理的价值1小时你是好的。

However by itself it may not give you much benefit because by default Firefox can only cache 20 entires.不过,本身可能不给你多少好处,因为默认情况下, Firefox的只能缓存20 entires 。 So you should also increase the cache size to anywhere from 100 to 1000.因此,你也应该增加高速缓存大小的任何地方,从100到1000 。 I use 1000.我使用1000 。 You can change the cache size by similarly (see the documentation above for Network.dnsCacheExpiration) creating a new preference: network.dnsCacheEntries and set its value to 1000.你可以改变的快取记忆体大小,由同样(见上述文件为network.dnscacheexpiration )创建一个新的偏好: network.dnscacheentries和其值设置为1000 。

Close the browser and restart.关闭浏览器并重新启动。 You are done.你这样做。