What does the HTTP 206 Partial Content status message mean and how do I fully load resources?

prasadmsvs picture prasadmsvs · Apr 3, 2013 · Viewed 89.5k times · Source

I have some image tags on a site like this.

<img src="img.png"/>

When I try to load them they are only half loading. When I checked the request in the network console I see that the response is:

206 Partial Content

I googled it and it says that if there is a range set in header, it will be like this. But where are these headers actually set? And how do I avoid this and load the full images?

Answer

csaron92 picture csaron92 · Apr 3, 2013

From user166390’s answer to the question 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.