1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
|
---
title: Mozilla 网络相关首选项
slug: Mozilla/Preferences/Mozilla_networking_preferences
translation_of: Mozilla/Preferences/Mozilla_networking_preferences
---
<h3 id="Abstract" name="Abstract">摘要</h3>
<p>本文列出了影响网络行为的首选项,并描述了可接受的值和行为。</p>
<h3 id="Audience" name="Audience">受众</h3>
<p>质量保证测试员、开发者以及熟知网络内部原理的骨灰级用户。<br>
要想获取关于首选项(包括如何编辑)的通用技术文档,请参阅“有关 Mozilla 首选项的简要指南”一文。</p>
<p>本文的目标是准确地记录有关 Core-Necko 的行为及是否在 Firefox 中默认存在的信息。</p>
<h3 id="Feedback" name="Feedback">概观</h3>
<p>The sections are in roughly alphabetical + functional order. The preferences are in order of usage by the UI (which is not often alphabetical order). Relevant bugs are provided only when absolutely necessary.</p>
<div class="note">
<p>Note: Do not change any of these via <code>about:config</code> unless <strong>you know what you are doing</strong>. If you are uncertain what that phrase means, you probably do not.</p>
</div>
<p>If you qualify, you are probably one or more of the following:</p>
<ul>
<li>You have a feature-spec or code-level understanding of the preference.</li>
<li>You are doing testing and have a clear performance metric.</li>
<li>You are doing this in conjunction with a packet trace to monitor Necko's changed behavior.</li>
</ul>
<h3 id="Preferences" name="Preferences">首选项</h3>
<h4 id="HTTP_.28this_section_under_construction.29" name="HTTP_.28this_section_under_construction.29">HTTP(本部分仍在建设中)</h4>
<table class="fullwidth-table">
<tbody>
<tr>
<th>首选项名称</th>
<th>可接受的值</th>
<th>首选项是否默认存在及其他说明</th>
</tr>
<tr>
<td><code>general.useragent.contentlocale</code></td>
<td>string</td>
<td> </td>
</tr>
<tr>
<td><code>general.useragent.misc</code></td>
<td>(major version number) string</td>
<td> </td>
</tr>
<tr>
<td><code>general.useragent.security</code></td>
<td>string</td>
<td> </td>
</tr>
<tr>
<td><code>network.http.accept-encoding</code></td>
<td><code>gzip,deflate</code> (default string)</td>
<td>no UI</td>
</tr>
<tr>
<td><code>network.http.accept.default</code></td>
<td><code>text/xml,application/xml,<br>
application/xhtml+xml,text/html;</code><br>
<code>q=0.9,text/plain;</code><br>
<code>q=0.8,video/x-mng,image/png,<br>
image/jpeg,image/gif;</code><br>
<code>q=0.2,*/*;q=0.1</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.default-socket-type</code></td>
<td>(empty) default</td>
<td>?</td>
</tr>
<tr>
<td><code>network.http.keep-alive</code></td>
<td><code>true</code> (default)</td>
<td> </td>
</tr>
<tr>
<td><code>network.http.keep-alive.timeout</code></td>
<td><code>30</code></td>
<td>no UI</td>
</tr>
<tr>
<td><code>network.http.max-connections</code></td>
<td><code>96</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.max-connections-per-server</code></td>
<td><code>32</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.max-persistent-connections-per-proxy</code></td>
<td><code>4</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.max-persistent-connections-per-server</code></td>
<td><code>8</code></td>
<td> </td>
</tr>
<tr>
<td><a class="external" href="http://kb.mozillazine.org/Network.http.pipelining" title="http://kb.mozillazine.org/Network.http.pipelining"><code>network.http.pipelining</code></a></td>
<td><code>True</code></td>
<td>? (on in mozilla, greyed)</td>
</tr>
<tr>
<td><code>network.http.pipelining.firstrequest</code></td>
<td><code>True</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.pipelining.maxrequests</code></td>
<td><code>8</code></td>
<td> Hard-coded to 8 max so 30 will have no greater affect</td>
</tr>
<tr>
<td><code>network.http.proxy.keep-alive</code></td>
<td><code>true</code> (default)</td>
<td> </td>
</tr>
<tr>
<td><code>network.http.proxy.pipelining</code></td>
<td><code>True</code></td>
<td>? (on in mozilla, greyed)</td>
</tr>
<tr>
<td><code>network.http.proxy.version</code></td>
<td><code>1.1</code> (default)<br>
<code>1.0</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.redirection-limit</code></td>
<td><code>20</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.request.max-start-delay</code></td>
<td><code>10</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.sendRefererHeader</code></td>
<td><code>2</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.sendSecureXSiteReferrer</code></td>
<td><code>true</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.use-cache</code></td>
<td><code>true</code></td>
<td> </td>
</tr>
<tr>
<td><code>network.http.version</code></td>
<td><code>1.1</code> (default)<br>
<code>1.0</code></td>
<td> </td>
</tr>
</tbody>
</table>
<h4 id="File" name="File">文件</h4>
<table class="fullwidth-table">
<tbody>
<tr>
<th>首选项名称</th>
<th>Acceptable Values</th>
<th>Preferences UI and comments</th>
</tr>
<tr>
<td><code>security.checkloaduri</code></td>
<td><strong><code>true</code> (default)</strong><br>
<code>false</code></td>
<td>No UI<br>
<code>checkloaduri</code> will disable file:// URLs on pages from a network (http: https: ftp:) source, for security reasons.<br>
Errors are sent to the javascript console, not to the user via dialog box. This preference only works in Gecko versions before 1.8 (so Firefox 1.0 and Mozilla Suite builds). In Firefox 1.5 and Seamonkey 1.0 this preference no longer has an effect.</td>
</tr>
</tbody>
</table>
<h4 id="FTP_.28see_also_Proxy.29" name="FTP_.28see_also_Proxy.29">FTP(另请参见“代理”部分)</h4>
<table class="fullwidth-table">
<tbody>
<tr>
<th>首选项名称</th>
<th>Acceptable Values</th>
<th>Preferences UI (in bold) and comments</th>
</tr>
<tr>
<td><code>advanced.mailftp</code></td>
<td><strong><code>false</code> (default)</strong><br>
<code>true</code></td>
<td>Preferences | Advanced |<br>
"<strong>{{ mediawiki.external('x') }} Set this email address as anonymous FTP password:</strong>"<br>
<br>
If false, FTP uses "<code><a class="link-mailto" href="mailto:mozilla@example.com" rel="freelink">mozilla@example.com</a></code>" as anonymous FTP password ({{ Bug("101027") }})<br>
If true, FTP uses contents of <code>network.ftp.anonymous_password</code> for anonymous FTP password ({{ Bug("57763") }} comment 28)</td>
</tr>
<tr>
<td><code>network.ftp.anonymous_password</code></td>
<td><strong><code>empty</code> (default)<br>
any text string</strong></td>
<td>Preferences | Advanced |<br>
(under "{{ mediawiki.external(' ') }} Set this email address as anonymous FTP password:")<br>
<strong>{{ mediawiki.external('text field') }}</strong><br>
<br>
If empty, FTP uses "<code><a class="link-mailto" href="mailto:mozilla@example.com" rel="freelink">mozilla@example.com</a></code>" as anonymous FTP password.</td>
</tr>
<tr>
<td><code>network.ftp.idleConnectionTimeout</code></td>
<td><strong><code>300</code> (default)</strong><br>
any integer</td>
<td>No UI<br>
Measured in seconds<br>
The open connection can prevent other FTP clients on your system from connecting to sites that allow only one control connection ({{ Bug("117875") }})</td>
</tr>
<tr>
<td><code>network.dir.format</code></td>
<td><code>0</code> = HTML view<br>
<code>1</code> = raw view<br>
<code>2</code> = HTML view<br>
<code>3</code> = XUL view</td>
<td>Preferences | Debug | Networking<br>
Networking<br>
Directory Listing Format<br>
<strong>( ) HTML</strong><br>
<strong>( ) XUL (tree-based)</strong></td>
</tr>
</tbody>
</table>
<h4 id="Cache" name="Cache">缓存</h4>
<table class="fullwidth-table">
<tbody>
<tr>
<th>首选项名称</th>
<th>Acceptable Values</th>
<th>Preferences UI (in bold) and comments</th>
</tr>
<tr>
<td><code>browser.cache.disk.capacity</code></td>
<td>
<p><strong><code>256000</code> (default)</strong></p>
<p>any integer (in KB)</p>
</td>
<td>
<p>Preferences | Advanced | Cache<br>
<strong>Cache: {{ mediawiki.external('MB') }} MB</strong></p>
<div class="note">
<strong>Note:</strong> The default was 51200 prior to Gecko 9.0 {{ geckoRelease("9.0") }}.</div>
</td>
</tr>
<tr>
<td><code>browser.cache.disk.parent_directory</code></td>
<td><strong>path to Cache folder in profile (default)</strong></td>
<td>
<p><strong>Cache Folder: {{ mediawiki.external('text box') }}</strong></p>
<div class="note">
<strong>Note:</strong> The contents of the disk and memory caches are different (a very large memory cache is not the same as pointing disk cache to memory mapped disk space (RAM disk).</div>
</td>
</tr>
<tr>
<td><code>browser.cache.disk.max_entry_size</code></td>
<td>
<p><strong><code>51200</code> (default)</strong></p>
<p>-1 = no limit</p>
</td>
<td>
<p>The maximum size of an entry in the disk cache.</p>
<div class="note">
<strong>Note:</strong> Items larger than 1/8 of <code>browser.cache.disk.capacity</code> are never cached.</div>
</td>
</tr>
<tr>
<td><code>browser.cache.check_doc_frequency</code></td>
<td><code>1</code> = Every time I view the page<br>
<code>0</code> = Once per session<br>
<code>3</code> = When the page is out of date (default)<br>
<code>2</code> = Never</td>
<td><strong>Compare the page in cache to the page on the network:</strong></td>
</tr>
<tr>
<td><code>browser.cache.disk.enable</code></td>
<td><strong><code>true</code> (default)</strong></td>
<td colspan="1" rowspan="2">Preferences | Debug | Cache<br>
<strong>{{ mediawiki.external('x') }} Enable Disk Cache</strong><br>
<strong>{{ mediawiki.external('x') }} Enable Memory Cache</strong><br>
<br>
Disabling disk cache has the effect of setting it to zero.</td>
</tr>
<tr>
<td><code>browser.cache.memory.enable</code></td>
<td><strong><code>true</code> (default)</strong></td>
</tr>
<tr>
<td><code>browser.cache.memory.capacity</code></td>
<td>any integer (in KB)</td>
<td>Replaced by automatic sizing in Mozilla 1.4b ({{ Bug("105344") }}).<br>
This value overrides the application.<br>
0 disables feature<br>
(<strong>before, <code>4096</code> = default</strong>)</td>
</tr>
<tr>
<td><code>browser.cache.memory.max_entry_size</code></td>
<td>
<p><strong><code>5120</code> (default)</strong></p>
<p>-1 = no limit</p>
</td>
<td>
<p>The maximum size of an entry in the memory cache (in KB).</p>
<div class="note">
<strong>Note:</strong> Items larger than 90% of <code>browser.cache.memory.capacity</code> are never cached.</div>
</td>
</tr>
<tr>
<td><code>network.http.use-cache</code></td>
<td><strong><code>true</code> (default)</strong></td>
<td>no UI</td>
</tr>
<tr>
<td><code>browser.cache.disk_cache_ssl</code></td>
<td><strong><code>false</code> (default)</strong></td>
<td>no UI, added in 1.6a (see {{ Bug("205921") }})</td>
</tr>
<tr>
<td><code>network.prefetch-next</code></td>
<td><strong><code>False</code></strong></td>
<td>Preferences | Advanced | Cache: Link Prefetching<br>
<strong>{{ mediawiki.external('x') }} Prefetch web pages when idle, so that links in web page designed for prefetching can load faster.</strong></td>
</tr>
<tr>
<td><code>browser.cache.disk.smart_size.first_run</code></td>
<td><strong><code>true</code> (default)</strong></td>
<td>Indicates whether or not this is the first time smart sizing has been used.</td>
</tr>
<tr>
<td><code>browser.cache.disk.smart_size.enabled</code></td>
<td><strong><code>true</code> (default)</strong></td>
<td>Indicates whether or not smart sizing of the disk cache is enabled.</td>
</tr>
</tbody>
</table>
<h4 id="DNS" name="DNS">DNS</h4>
<table class="fullwidth-table">
<tbody>
<tr>
<th>首选项名称</th>
<th>Acceptable Values</th>
<th>Preferences UI (in bold) and comments</th>
</tr>
<tr>
<td><code>network.dnsCacheExpiration</code></td>
<td><strong><code>60</code> (seconds)</strong></td>
<td colspan="1" rowspan="2">default pref-less, not visible in about:config.<br>
Create and set both values to "0" to disable.</td>
</tr>
<tr>
<td><code>network.dnsCacheEntries</code></td>
<td><strong><code>20</code> (entries)</strong></td>
</tr>
</tbody>
</table>
<h4 id="Cookies" name="Cookies">Cookie</h4>
<p>The old section in this document was removed because of dwitte's cookies re-write. Please see: <a href="/en/Cookies_Preferences_in_Mozilla" title="en/Cookies_Preferences_in_Mozilla">Cookies Preferences in Mozilla</a></p>
<h4 id="Proxy" name="Proxy">代理</h4>
<table class="fullwidth-table">
<tbody>
<tr>
<th>首选项名称</th>
<th>Acceptable Values</th>
<th>Preferences UI (in bold) and comments</th>
</tr>
<tr>
<td><code>network.proxy.type</code></td>
<td><code>0</code> = direct<br>
<code>1</code> = manual<br>
<code>2</code> = PAC<br>
<code>3</code> = mapped to 0<br>
<code>4</code> = WPAD</td>
<td>Preferences | Advanced | Proxies<br>
Configure Proxies to Access the Internet<br>
<strong>( ) Direct connection to the internet</strong><br>
<strong>( ) Auto-detect proxy settings</strong> (new in 1.8)<br>
<strong>( ) Manual proxy configuration</strong><br>
<strong>( ) Automatic proxy configuration URL</strong><br>
<br>
3 was old Communicator value for DIRECT.</td>
</tr>
<tr>
<td><code>network.proxy.http</code></td>
<td colspan="1" rowspan="10"><Protocol> Proxy: hostname or IPv4 is acceptable. IPv6 needs to be tested.<br>
<br>
Port: 0 will cause server:port preference for that manual proxy type to be ignored. 1-65xxx is valid range</td>
<td colspan="1" rowspan="2">Affects <code>http:</code> URLs</td>
</tr>
<tr>
<td><code>network.proxy.http_port</code></td>
</tr>
<tr>
<td><code>network.proxy.ssl</code></td>
<td colspan="1" rowspan="2">Affects <code>https:</code> URLs<br>
Possibly affects SIMAP and SNEWS</td>
</tr>
<tr>
<td><code>network.proxy.ssl_port</code></td>
</tr>
<tr>
<td><code>network.proxy.ftp</code></td>
<td colspan="1" rowspan="2">Affects <code>ftp:</code> URLs</td>
</tr>
<tr>
<td><code>network.proxy.ftp_port</code></td>
</tr>
<tr>
<td><code>network.proxy.gopher</code> {{ obsolete_inline("2.0") }}</td>
<td colspan="1" rowspan="2">Affects <code>gopher:</code> URLs</td>
</tr>
<tr>
<td><code>network.proxy.gopher_port</code> {{ obsolete_inline("2.0") }}</td>
</tr>
<tr>
<td><code>network.proxy.socks</code></td>
<td colspan="1" rowspan="2">Used when application-specific proxy is not configured. Possibly affects other protocols</td>
</tr>
<tr>
<td><code>network.proxy.socks_port</code></td>
</tr>
<tr>
<td><code>network.proxy.socks_version</code></td>
<td><strong><code>5</code> (default)</strong><br>
<code>4</code></td>
<td>Communicator supported only SOCKS V4.</td>
</tr>
<tr>
<td><code>network.proxy.no_proxies_on</code></td>
<td><strong><code>localhost, 127.0.0.1</code> (default)</strong><br>
string of comma delimited fqdn's, hostnames, IPv4 addresses and CDIR blocks. See <a href="/en/No_Proxy_For_configuration" title="en/No_Proxy_For_configuration">No Proxy For configuration</a>.</td>
<td>Localhost is not proxied by default, {{ Bug("31510") }}.</td>
</tr>
<tr>
<td><code>network.proxy.autoconfig_url</code></td>
<td><strong>empty (default)</strong><br>
URL string</td>
<td>must be absolute URl, no hostname</td>
</tr>
</tbody>
</table>
<h4 id="Online" name="Online">在线</h4>
<table class="fullwidth-table">
<tbody>
<tr>
<th>Preference Name</th>
<th>Acceptable Values</th>
<th>Preferences UI (in bold) and comments</th>
</tr>
<tr>
<td><code>network.online</code></td>
<td><strong><code>true</code> = Mozilla is online (default)<br>
<code>false</code> = Mozilla is offline</strong></td>
<td>Necko updates the offline|online status to this value.<br>
Changing this value does not change the actual networking status.<br>
Value is not updated if "Ask me for online state at startup" was selected<br>
for the current profile ({{ Bug("229677") }}).</td>
</tr>
<tr>
<td><code>offline.startup_state</code></td>
<td><strong><code>0</code> = use network.online (default)</strong><br>
<code>1 = prompt user</code></td>
<td>Preferences: Mail & Newsgroups | Offline | When starting up:<br>
(Pref affects all modules, but was moved from Pref root, {{ Bug("202529") }})<br>
{{ mediawiki.external('x') }} Remember previous online state<br>
(Uses network.online to set online|offline status at startup)<br>
{{ mediawiki.external(' ') }} Ask me for online state at startup<br>
(Unlike Communicator, prompt always appears, {{ Bug("239564") }})</td>
</tr>
</tbody>
</table>
<h4 id="Gopher_.28see_also_Proxy.29" name="Gopher_.28see_also_Proxy.29">Gopher(另请参见“代理”部分)</h4>
<table class="fullwidth-table">
<tbody>
<tr>
<th>Preference Name</th>
<th>Acceptable Values</th>
<th>Comments (bold for areas that user configures)</th>
</tr>
<tr>
<td><code>network.dir.format</code></td>
<td colspan="2" rowspan="1">see FTP {{ obsolete_inline("2.0") }}</td>
</tr>
</tbody>
</table>
<h4 id="Unsupported" name="Unsupported">不推荐修改(Unsupported)</h4>
<table class="fullwidth-table">
<tbody>
<tr>
<th>Preference Name</th>
<th>Acceptable Values</th>
<th>Comments (bold for areas that user configures)</th>
</tr>
<tr>
<td><code>browser.xul.error.pages.enabled</code></td>
<td><code>false</code> (default)<br>
<code>true</code></td>
<td>Does not appear in about.config unless added explicitly. See {{ Bug("28586") }})</td>
</tr>
<tr>
<td><code>network.protocol-handler.external.SCHEME</code></td>
<td><code>false</code> (default)<br>
<code>true</code></td>
<td>Mac+Windows: sends URLs of <SCHEME> to the default OS handler<br>
Linux/UNIX: sends URLs to application<br>
For example: <code>network.protocol-handler.external.mailto==true</code> is used by Phoenix/Firebird/Firefox to access default mailers.<br>
Handlers loaded before prefs are read cannot be redirected (e.g. file:)</td>
</tr>
</tbody>
</table>
<p> </p>
<h4 id="Obsolete.2FRemoved_.28this_is_list_is_incomplete.29" name="Obsolete.2FRemoved_.28this_is_list_is_incomplete.29">已过时/已移除(此列表不全)</h4>
<ul>
<li><code>browser.cache.enable</code></li>
<li><code>browser.cache.disk.directory</code></li>
<li><code>networking.proxy.wais</code></li>
<li><code>networking.proxy.wais_port</code></li>
<li><code>network.http.connect.timeout</code></li>
<li><code>network.http.proxy.ssl.connect</code></li>
</ul>
<h4 id="Under_Investigation" name="Under_Investigation">Under Investigation</h4>
<ul>
<li><code>offline.startup_state</code></li>
</ul>
<div class="originaldocinfo">
<h2 id="Original_Document_Information" name="Original_Document_Information"><span class="short_text" id="result_box" lang="zh-CN"><span>原始文档信息</span></span></h2>
<ul>
<li>Author(s): Benjamin Chuang</li>
<li>Last Updated Date: July 26, 2007</li>
<li>Copyright Information: Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | <a class="external" href="http://www.mozilla.org/foundation/licensing/website-content.html">Details</a>.</li>
</ul>
</div>
<p>{{ languages( { "ja": "ja/Mozilla_Networking_Preferences" } ) }}</p>
|