diff options
Diffstat (limited to 'files/zh-cn/mozilla/preferences/mozilla_networking_preferences/index.html')
| -rw-r--r-- | files/zh-cn/mozilla/preferences/mozilla_networking_preferences/index.html | 536 |
1 files changed, 0 insertions, 536 deletions
diff --git a/files/zh-cn/mozilla/preferences/mozilla_networking_preferences/index.html b/files/zh-cn/mozilla/preferences/mozilla_networking_preferences/index.html deleted file mode 100644 index 117fa5d6af..0000000000 --- a/files/zh-cn/mozilla/preferences/mozilla_networking_preferences/index.html +++ /dev/null @@ -1,536 +0,0 @@ ---- -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> |
