微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

html – 什么是206部分内容

<img src="img.png"/>

我在网站上有一些图像,如上所述.当我尝试加载它们时,它们只加载一半.当我在控制台中检查请求时.

我看到响应是

“206 partial content”

我google了,它说,如果在标题中设置一个范围,它将是这样的.但这些头实际设置在哪里?并且如何避免这个并加载完整的图像?

解决方法

From user166390’s answer到问题 Why does Firebug show a “206 Partial Content” response on a video loading request?

This Partial Content code (206) may be sent from the server when the client has asked for a range (e.g. “give me the first 2MB of video data”).

It is vital for downloading data in chunks which avoids fetching unused resources. (I seldom watch a full video online.) Look at the outgoing request for a Range header.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。