HTTP headers | AcceptEncoding (original) (raw)

HTTP headers | Accept-Encoding

Last Updated : 29 Aug, 2024

The **HTTP headers Accepts-Encoding is usually a comparison algorithm of request header. All the HTTP client used to tell the server which encoding or encodings it supports. Then the server will respond in any of the supporting encoding formats. The server selects any one of the proposals, uses it and informs the client of its choice with the **Content-Encoding response header.

**Syntax:

Accept-Encoding: gzip | compress | deflate | br| identity| *

**Note:

Multiple algorithm are also can be applicable.

**Directives:

You can check how good your

**Accept-Encoding

and

**Content-Encoding

is working on this

site

.

**Example:

Accept-Encoding: gzip, deflate, br

Accept-Encoding: br;q=1.0, gzip;q=0.6, *;q=0.1

To check this Accept-Encoding in action go to

**Inspect Element

->

**Network

check the request header for Accept-Encoding like below, Accept-Encoding is highlighted you can see.

**Supported Browsers:

The browsers compatible with

**HTTP headers Accept-Encoding

are listed below: