什么是206部分内容 [英] What is 206 partial content

查看:239
本文介绍了什么是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的回答的问题<一href=\"http://stackoverflow.com/questions/9755168/why-does-firebug-show-a-206-partial-content-response-on-a-video-loading-reques\">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.

这篇关于什么是206部分内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆