From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/http/status/308/index.html | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 files/zh-cn/web/http/status/308/index.html (limited to 'files/zh-cn/web/http/status/308/index.html') diff --git a/files/zh-cn/web/http/status/308/index.html b/files/zh-cn/web/http/status/308/index.html new file mode 100644 index 0000000000..882a5836ea --- /dev/null +++ b/files/zh-cn/web/http/status/308/index.html @@ -0,0 +1,49 @@ +--- +title: 308 Permanent Redirect +slug: Web/HTTP/Status/308 +tags: + - 响应状态码 + - 重定向 +translation_of: Web/HTTP/Status/308 +--- +
{{HTTPSidebar}}
+ +

在 HTTP 协议中, 308 Permanent Redirect(永久重定向)是表示重定向的响应状态码,说明请求的资源已经被永久的移动到了由 {{HTTPHeader("Location")}} 首部指定的 URL 上。浏览器会进行重定向,同时搜索引擎也会更新其链接(用 SEO 的行话来说,意思是“链接汁”(link juice)被传递到了新的 URL)。

+ +

在重定向过程中,请求方法和消息主体不会发生改变,然而在返回 {{HTTPStatus("301")}} 状态码的情况下,请求方法有时候会被客户端错误地修改为 {{HTTPHeader("GET")}} 方法。

+ +
+

一些 Web 应用可能会将 308 Permanent Redirect 以一种非标准的方式使用以及用作其他用途。例如,Google Drive 会使用 308 Resume Incomplete 状态码来告知客户端文件上传终止且不完整。[1]

+
+ +

状态

+ +
308 Permanent Redirect
+ +

标准

+ + + + + + + + + + + + +
标准标题
{{RFC("7538", "308 Permanent Redirect" , "3")}}The Hypertext Transfer Protocol Status Code 308 (Permanent Redirect)
+ +

浏览器兼容性

+ + + +

{{Compat("http.status.308")}}

+ +

更多可见

+ + -- cgit v1.2.3-54-g00ecf