Compare Revisions

Compression in HTTP

Change Revisions

Revision 1108895:

Revision 1108895 by teoli on

Revision 1108899:

Revision 1108899 by teoli on

Title:
Compression in HTTP
Compression in HTTP
Slug:
Web/HTTP/Compression
Web/HTTP/Compression
Tags:
"Content Negotiation" "Guide" "HTTP"
"Content Negotiation" "Guide" "HTTP"
Content:

Revision 1108895
Revision 1108899
n59      To select the algorithm to use, browser and server use <a hn59      To select the algorithm to use, browser and server use <a h
>ref="/en-US/docs/Web/HTTP/Content_negotiation">proactive content >ref="/en-US/docs/Web/HTTP/Content_negotiation">proactive content 
>negotiation</a>. The browser send an {{HTTPHeader("Accept-Encodin>negotiation</a>. The browser send an {{HTTPHeader("Accept-Encodin
>g")}} header with the algorithm it supports and its order of prec>g")}} header with the algorithm it supports and its order of prec
>edence, the server pick one, use it to compress the body of the r>edence, the server pick one, use it to compress the body of the r
>esponse and use the {{HTTPHeader("Content-Encoding")}} header to >esponse and use the {{HTTPHeader("Content-Encoding")}} header to 
>tell the browser the algorithm it chose.>tell the browser the algorithm it chose. As content negotiation h
 >as been used to chose a representation based on its encoding, a {
 >{HTTPHeader("Vary")}} header containing at least {{HTTPHeader("Co
 >ntent-Encoding")}} must be sent alongside this header in the resp
 >onse; that way, cache will be able to cache the different represe
 >ntations of the resource.
t63    </p>t
64    <p>
65      &nbsp;

Back to History