6月 192009
 

firefox中可配置的选项很多,作为一个web开发者来将,我们虽然没有权限修改用户的浏览器配置,但是我们起码可以从中知道浏览器的默认配置是怎样的,这也有利于我们的程序的开发。

在firefox地址栏里输入: about:config

你将发现很多firefox的配置选项,简单说一下我看过的几类:

cache 相关类,可以配置cache的使用方式,如果我们是做测试的,不希望有cache,你们彻底禁止掉就可以了,相关选项为:
browser.cache.disk.enable
browser.cache.memory.enable
network.http.use-cache false 不适用任何cache

另外: browser.cache.disk_cache_ssl 默认为false,说明firefox默认是不缓存走ssl的请求的

network.http 相关类
network.http.max-connections-per-server 默认为15,就是说每个server最多同时发起15个请求
network.http.max-connections 默认为30, 就是同时的最大连接数不超过30个

(测试时发现每个域同时最大的连接数也不超过2个,不知道为何,所以这些配置看完后最好测试一下再去相信)

network.dns 相关类
network.dns.disableIPv6 false 是否先按照ipv6来解析域名

cookie 相关

 

session相关

ssl相关

dom相关

dom.allow_scripts_to_close_windows    默认false , 是否允许script关闭窗口

 

 Posted by at 上午 10:12

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据