Compare Revisions
Accept-Encoding
Revision 1107001:
Revision 1107001 by fscholz on
Revision 1108307:
Revision 1108307 by teoli on
- Title:
- Accept-Encoding
- Accept-Encoding
- Slug:
- Web/HTTP/Headers/Accept-Encoding
- Web/HTTP/Headers/Accept-Encoding
- Tags:
- "Content Negotiation" "HTTP" "HTTP Header" "Reference" "Request header"
- "Content Negotiation" "HTTP" "HTTP Header" "Reference" "Request header"
- Comment:
- review
- Content:
-
Revision 1107001 Revision 1108307 t t 13 <p> 14 Even if both the client and the server supports the same co > mpression algorithms, the server may choose not to compress the b > ody of a response, if the identity value is also acceptable. Two > common cases lead to this: 15 </p> 16 <ul> 17 <li>The data to be sent is already compressed and a second > compression won't lead to smaller data to be transmitted. This ma > y the case with some image formats; 18 </li> 19 <li>The server is overloaded and cannot afford the computat > ional overhead induced by the compression requirement. Typically, > Microsoft recommends not to compress if a server use more than 8 > 0 % of its computational power. 20 </li> 21 </ul> 22 <p> 23 As long as the <code>identity</code> value, meaning no encr > yption, is not explicitly forbidden, by an <code>identity;q=0</co > de> or a <code>*;q=0</code> without another explicitly set value > for identity, the server must never send back a {{HTTPStatus("406 > ")}} <code>Not Acceptable</code> error. 24 </p> 25 <div class="note"> 26 <p> 27 <strong>Notes:</strong> 28 </p> 29 <ul> 30 <li> 31 <p> 32 An IANA registry maintains <a class="external" href=" > http://www.iana.org/assignments/http-parameters/http-parameters.x > ml#http-parameters-1" title="http://www.iana.org/assignments/http > -parameters/http-parameters.xml#http-parameters-1">a complete lis > t of official content encodings</a>. 33 </p> 34 </li> 35 <li>Two others content encoding, <code>bzip</code> and <c > ode>bzip2</code>, are sometimes used, though not standard. They i > mplement the algorithm used by these two UNIX programs. Note that > the first one was discontinued due to patent licensing problems. 36 </li> 37 </ul> 38 </div>