From 31bc8af6d08abf6214e7785a86c11b3b9c2a6549 Mon Sep 17 00:00:00 2001 From: NOTHING Date: Mon, 9 Aug 2021 22:50:54 +0800 Subject: Improve translation in Web/HTTP/Status/302, zh-CN (#1992) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Location是该302响应对应的响应头的字段,原翻译不通顺 --- files/zh-cn/web/http/status/302/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web/http/status/302') diff --git a/files/zh-cn/web/http/status/302/index.html b/files/zh-cn/web/http/status/302/index.html index d2e5aa9944..cfb8fb0d42 100644 --- a/files/zh-cn/web/http/status/302/index.html +++ b/files/zh-cn/web/http/status/302/index.html @@ -9,7 +9,7 @@ translation_of: Web/HTTP/Status/302 ---
{{HTTPSidebar}}
-

HTTP 302 Found 重定向状态码表明请求的资源被暂时的移动到了由{{HTTPHeader("Location")}} 头部指定的 URL 上。浏览器会重定向到这个URL, 但是搜索引擎不会对该资源的链接进行更新 (In SEO-speak, it is said that the link-juice is not sent to the new URL)。

+

HTTP 302 Found 重定向状态码表明请求的资源被暂时的移动到了由该HTTP响应的响应头{{HTTPHeader("Location")}} 指定的 URL 上。浏览器会重定向到这个URL, 但是搜索引擎不会对该资源的链接进行更新 (In SEO-speak, it is said that the link-juice is not sent to the new URL)。

即使规范要求浏览器在重定向时保证请求方法和请求主体不变,但并不是所有的用户代理都会遵循这一点,你依然可以看到有缺陷的软件的存在。所以推荐仅在响应 {{HTTPMethod("GET")}} 或 {{HTTPMethod("HEAD")}} 方法时采用 302 状态码,而在其他时候使用 {{HTTPStatus("307")}} Temporary Redirect 来替代,因为在这些场景下方法变换是明确禁止的。

-- cgit v1.2.3-54-g00ecf