<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.