Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-cn]: update compatibility translation in 204 page #23181

Merged
merged 3 commits into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions files/zh-cn/web/http/status/204/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ HTTP **`204 No Content`** 成功状态响应码,表示该请求已经成功了

{{Specifications}}

## 浏览器兼容性
## 兼容性说明

{{Compat}}
尽管此状态码适用于没有响应体的响应,但服务器可能会错误地在标头后面携带数据。这种问题在长连接中尤为常见,因为无效的响应体可能会与后续请求的响应数据混合在一起。HTTP 协议允许浏览器以不同的方式处理此类响应([HTTPWG `http-core` GitHub 仓库](https://github.com/httpwg/http-core/issues/26)中正在持续讨论有关规范文本的内容)。

Apple Safari 拒绝任何此类数据。Google Chrome 和 Microsoft Edge 在得到有效响应之前最多丢弃 4 个无效字节。Firefox 在获得有效响应之前可以容忍超过 1KB 的无效数据。

## 参见

Expand Down