什么是206部分内容
<img src="img.png"/>
我有类似上面的网站上的一些图像。当我尝试加载他们,他们正在装载只有一半。当我检查控制台的请求。
I have some images on the site like above. When I try to load them they are loading only half. When I checked the requests in console.
我看到的响应
206部分内容
我GOOGLE了它和它说,如果在头设置一个范围,这将是这个样子。但是,在没有这些头实际设置?而如何避免这种情况,并加载完整图像?
I googled it and it says that if there is a range set in header, it will be like this. But where does these headers actually set? And how to avoid this and load full images?
从user166390的回答的问题Why它的Firebug显示&QUOT; 206部分内容&QUOT;响应在视频加载请求?
这部分内容code(206)的可以的从当客户端已要求范围(如给我的视频数据的第一个2MB)服务器发送。
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.