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.

相关文章

Mip是什么意思以及作用有哪些
怎么测试Mip页面运行情况
MIP安装的具体步骤有哪些
HTML添加超链接、锚点的方法及作用详解(附视频)
MIP的规则有哪些
Mip轮播图组件中的重要属性讲解