From b9783c06657382caf2267a9a098ffa8e95a7f2ab Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Sat, 31 Jul 2021 09:33:29 -0400 Subject: remove link 'title' attributes that's just the 'href' (zh-cn, part 5) --- .../web/http/basics_of_http/data_uris/index.html | 2 +- .../list_of_default_accept_values/index.html | 14 +++---- files/zh-cn/web/http/cors/index.html | 6 +-- files/zh-cn/web/http/headers/index.html | 44 +++++++++++----------- .../web/http/headers/user-agent/firefox/index.html | 2 +- .../http/headers/x-dns-prefetch-control/index.html | 2 +- .../web/http/headers/x-frame-options/index.html | 6 +-- .../zh-cn/web/http/link_prefetching_faq/index.html | 6 +-- 8 files changed, 41 insertions(+), 41 deletions(-) (limited to 'files/zh-cn/web/http') diff --git a/files/zh-cn/web/http/basics_of_http/data_uris/index.html b/files/zh-cn/web/http/basics_of_http/data_uris/index.html index 1373bc29dc..00c69d644e 100644 --- a/files/zh-cn/web/http/basics_of_http/data_uris/index.html +++ b/files/zh-cn/web/http/basics_of_http/data_uris/index.html @@ -68,7 +68,7 @@ YSBzbGlnaHRseSBsb25nZXIgdGVzdCBmb3IgdGV2ZXIK
语法
data URLs 的格式很简单,但很容易会忘记把逗号加在 "data" 协议名后面,在对数据进行 base64 编码时也很容易发生错误。
HTML代码格式化
-
一个 data URL 是一个文件中的文件,相对于文档来说这个文件可能就非常的长。因为 data URL 也是 URL,所以 data 会用空白符(换行符, 制表符, 空格)来对它进行格式化。但如果数据是经过 base64 编码的,就可能会遇到一些问题
+
一个 data URL 是一个文件中的文件,相对于文档来说这个文件可能就非常的长。因为 data URL 也是 URL,所以 data 会用空白符(换行符, 制表符, 空格)来对它进行格式化。但如果数据是经过 base64 编码的,就可能会遇到一些问题
长度限制
虽然 Firefox 支持无限长度的 data URLs,但是标准中并没有规定浏览器必须支持任意长度的 data URIs。比如,Opera 11浏览器限制 URLs 最长为 65535 个字符,这意味着 data URLs 最长为 65529 个字符(如果你使用纯文本 data:, 而不是指定一个 MIME 类型的话,那么 65529 字符长度是编码后的长度,而不是源文件)。
缺乏错误处理
diff --git a/files/zh-cn/web/http/content_negotiation/list_of_default_accept_values/index.html b/files/zh-cn/web/http/content_negotiation/list_of_default_accept_values/index.html index 0da28e9bf9..3b7288d8fc 100644 --- a/files/zh-cn/web/http/content_negotiation/list_of_default_accept_values/index.html +++ b/files/zh-cn/web/http/content_negotiation/list_of_default_accept_values/index.html @@ -42,7 +42,7 @@ original_slug: Web/HTTP/Content_negotiation/Accept_默认值 Internet Explorer 8 image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, application/msword, */* -  请参见 IE and the Accept Header (IEInternals' MSDN blog). +  请参见 IE and the Accept Header (IEInternals' MSDN blog). Edge @@ -87,12 +87,12 @@ original_slug: Web/HTTP/Content_negotiation/Accept_默认值 Internet Explorer 8 及更早版本 */* -  请参见 IE and the Accept Header (IEInternals' MSDN blog) +  请参见 IE and the Accept Header (IEInternals' MSDN blog) Internet Explorer 9 image/png,image/svg+xml,image/*;q=0.8, */*;q=0.5 - 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) + 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) @@ -189,12 +189,12 @@ original_slug: Web/HTTP/Content_negotiation/Accept_默认值 Internet Explorer 8 及更早版本 */* - 请参见 IE and the Accept Header (IEInternals' MSDN blog) + 请参见 IE and the Accept Header (IEInternals' MSDN blog) Internet Explorer 9 application/javascript, */*;q=0.8 - 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) + 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) @@ -223,12 +223,12 @@ original_slug: Web/HTTP/Content_negotiation/Accept_默认值 Internet Explorer 8 及更早版本 */* - 请参见 IE and the Accept Header (IEInternals' MSDN blog) + 请参见 IE and the Accept Header (IEInternals' MSDN blog) Internet Explorer 9 text/css - 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) + 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) Chrome 12 diff --git a/files/zh-cn/web/http/cors/index.html b/files/zh-cn/web/http/cors/index.html index 80755243d5..cdd058c212 100644 --- a/files/zh-cn/web/http/cors/index.html +++ b/files/zh-cn/web/http/cors/index.html @@ -36,11 +36,11 @@ original_slug: Web/HTTP/Access_control_CORS

什么情况下需要 CORS ?

-

这份 cross-origin sharing standard 允许在下列场景中使用跨站点 HTTP 请求:

+

这份 cross-origin sharing standard 允许在下列场景中使用跨站点 HTTP 请求:

@@ -258,7 +258,7 @@ Access-Control-Allow-Methods: POST, GET, OPTIONS Access-Control-Allow-Headers: X-PINGOTHER, Content-Type Access-Control-Max-Age: 86400 -

首部字段 Access-Control-Allow-Methods 表明服务器允许客户端使用 POST, GET OPTIONS 方法发起请求。该字段与 HTTP/1.1 Allow: response header 类似,但仅限于在需要访问控制的场景中使用。

+

首部字段 Access-Control-Allow-Methods 表明服务器允许客户端使用 POST, GET OPTIONS 方法发起请求。该字段与 HTTP/1.1 Allow: response header 类似,但仅限于在需要访问控制的场景中使用。

首部字段 Access-Control-Allow-Headers 表明服务器允许请求中携带字段 X-PINGOTHER Content-Type Access-Control-Allow-Methods 一样,Access-Control-Allow-Headers 的值为逗号分割的列表。

diff --git a/files/zh-cn/web/http/headers/index.html b/files/zh-cn/web/http/headers/index.html index 8a7cdd0e13..e23e0b0ac6 100644 --- a/files/zh-cn/web/http/headers/index.html +++ b/files/zh-cn/web/http/headers/index.html @@ -9,7 +9,7 @@ translation_of: Web/HTTP/Headers

HTTP 消息头允许客户端和服务器通过 request response传递附加信息。一个请求头由名称(不区分大小写)后跟一个冒号“:”,冒号后跟具体的值(不带换行符)组成。该值前面的引导空白会被忽略。

-

自定专用消息头可通过'X-' 前缀来添加;但是这种用法被IETF在2012年6月发布的 RFC6648 中明确弃用,原因是其会在非标准字段成为标准时造成不便;其他的消息头在 IANA 注册表 中列出, 其原始内容在 RFC 4229 中定义。 此外,IANA 还维护着被提议的新HTTP 消息头注册表.

+

自定专用消息头可通过'X-' 前缀来添加;但是这种用法被IETF在2012年6月发布的 RFC6648 中明确弃用,原因是其会在非标准字段成为标准时造成不便;其他的消息头在 IANA 注册表 中列出, 其原始内容在 RFC 4229 中定义。 此外,IANA 还维护着被提议的新HTTP 消息头注册表.

根据不同上下文,可将消息头分为:

@@ -88,49 +88,49 @@ translation_of: Web/HTTP/Headers Access-Control-Allow-Credentials HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Allow-Origin HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Allow-Methods HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Allow-Headers HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Max-Age HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Expose-Headers HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("2") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Request-Method HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Request-Headers HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Age @@ -220,7 +220,7 @@ translation_of: Web/HTTP/Headers Cookie - RFC 2109 + RFC 2109 DNT @@ -298,7 +298,7 @@ translation_of: Web/HTTP/Headers Last-Event-ID 给出服务器在先前HTTP连接上接收的最后事件的ID。用于同步文本/事件流。 Server-Sent Events - Server-Sent Events spec + Server-Sent Events spec Last-Modified @@ -315,7 +315,7 @@ translation_of: Web/HTTP/Headers

For the rel=prefetch case, see Link Prefetching FAQ

-

Introduced in HTTP 1.1's RFC 2068, section 19.6.2.4, it was removed in the final HTTP 1.1 spec, then reintroduced, with some extensions, in RFC 5988

+

Introduced in HTTP 1.1's RFC 2068, section 19.6.2.4, it was removed in the final HTTP 1.1 spec, then reintroduced, with some extensions, in RFC 5988

@@ -340,7 +340,7 @@ translation_of: Web/HTTP/Headers Origin HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - More recently defined in the Fetch spec (see Fetch API.) Originally defined in W3C Cross-Origin Resource Sharing + More recently defined in the Fetch spec (see Fetch API.) Originally defined in W3C Cross-Origin Resource Sharing Pragma @@ -384,31 +384,31 @@ translation_of: Web/HTTP/Headers Sec-Websocket-Extensions -  Websockets +  Websockets Sec-Websocket-Key -  Websockets +  Websockets Sec-Websocket-Origin -  Websockets +  Websockets Sec-Websocket-Protocol -  Websockets +  Websockets Sec-Websocket-Version -  Websockets +  Websockets Server @@ -420,19 +420,19 @@ translation_of: Web/HTTP/Headers Set-Cookie - RFC 2109 + RFC 2109 Set-Cookie2 - RFC 2965 + RFC 2965 Strict-Transport-Security HTTP Strict Transport Security - IETF reference + IETF reference TCN @@ -452,7 +452,7 @@ translation_of: Web/HTTP/Headers

列出将在消息正文之后在尾部块中传输的头。这允许服务器计算一些值,如Content-MD5:在传输数据时。请注意,Trailer:标头不得列出Content-Length :, Trailer:或Transfer-Encoding:headers。

- RFC 2616, §14.40 + RFC 2616, §14.40 Transfer-Encoding diff --git a/files/zh-cn/web/http/headers/user-agent/firefox/index.html b/files/zh-cn/web/http/headers/user-agent/firefox/index.html index 284ff8599a..2e70d22e31 100644 --- a/files/zh-cn/web/http/headers/user-agent/firefox/index.html +++ b/files/zh-cn/web/http/headers/user-agent/firefox/index.html @@ -344,7 +344,7 @@ Mozilla/5.0 (Android 4.4; Tablet; rv:41.0) Gecko/41.0 Firefox/4

参见