The HTTP Accept-Encoding request and response header indicates the content Encoding (usually a compression algorithm) that the sender can understand.
In requests, the server uses content negotiation to select one of the Encoding proposals from the client and informs the client of that choice with the Content-Encoding response header.
In responses, it provides information about which content Encodings the server can understand in messages to the requested resource, so that the Encoding can be used in subsequent requests to the resource.
For example, Accept-Encoding is included in a 415 Unsupported Media Type response if a request to a resource (e.g., PUT) used an unsupported Encoding....正體中文 (繁體) The HTTP Accept-Encoding request and response header...header indicates the content encoding (usually a compression algorithm)...