We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Other Common Headers

We went with

  • Content-Length
  • Connection
  • and Content-Type

but a few more noteworthy mentions that we won't care about for now are:

  • Content-Encoding: Is the response content encoded/compressed? If so, then this should be included to tell the client how to decode it. (Remember, encoded != encrypted)
  • Date: The date and time that the message was sent. This is useful for caching and other things.
  • Cache-Control: Directives for caching mechanisms in both requests and responses. This is useful for telling the client or any intermediaries how to cache the response.