HTTP Common header information

Source: Internet
Author: User

The following is an example of the use of the form to record some of the commonly used HTTP header information

Response Header:

  1. http/1.1 OK //Request Line
  2. Date: Mon, Jul 2018 02:50:55 GMT //server time when sending a resource on a service side
  3. Expires: Wed, 1969 23:59:59 GMT //Compare the outdated way of validating the cache, compared to the time of the browser (client), without caching (no authentication with the server), for a more stable version of the Web page
  4. Cache-control: no-cache //Now the most used way to control the cache, and the server cache authentication, specifically see the blog "Cache-control"
  5. ETag: "FB8BA2F80B1D324BB997CBE188F28187-SSL-DF" //is the server's signature of some data, the next request, if the server on the data changes, and this etag is not the same as the return of the new resource content
  6. last-modified: Fri, 2018 11:04:55 GMT //Is the last time the resource was modified by the server, and the new resource content will be returned on the next request if the current resource on the server is modified more than this time .
  7. content-type: text/html; Charset=utf-8 //If the return is streaming data, we have to tell the browser this header, otherwise the browser will download this page, and also tell the browser is UTF8 encoding, otherwise it may appear garbled
  8. content-encoding: gzip //Tell the client that the resource should be decoded using gzip
  9. Connection: keep-alive //Tell the client server that the TCP connection is also a long connection

HTTP Common header information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.