Chapter 6
Having Fun: Lets Analyze the Critical Rendering Path Together
Section 5
Response and Request Headers
Understanding HTTP is very important. This is a quick lecture on what HTTP headers look like and where you can find them. HTTP headers (both response and request) allow the client (browser) and the server to pass information with the HTTP protocol. An HTTP header consists of its case-insensitive name followed by a colon (:), then by its value. Headers can be grouped into the following three broad categories (which you will see in this lecture): General headers: These apply to both requests and responses, but the data within this header has no relationship to the data transmitted in the body. Request headers: These are provided by the browser and contain information about the resource to be fetched, or about the client requesting the file. Response headers: These are provided by the server and hold additional information about the response, such as its location or about the server providing it.