Compression
A straightforward method to improve performance is by decreasing the size of the HTTP response. Although a minimalist approach to the markup used to display the content can be very helpful in this regard, the use of compression is also very beneficial. Although only the content is compressed, it is often the largest part of an HTTP response.
When a client declares support for specific types of encoding in the HTTP request with the Accept-Encoding header, the Web server can send the content of the HTTP response in any of the supported formats, and the Web client will decode the content once it is received. The Accept-Encoding header specifies which type of content encoding the browser has the capability to decode.
The Content-Encoding ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access