The following is an example of the use of the form to record some of the commonly used HTTP header information
Response Header:
- http/1.1 OK //Request Line
- Date: Mon, Jul 2018 02:50:55 GMT //server time when sending a resource on a service side
- 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
- Cache-control: no-cache //Now the most used way to control the cache, and the server cache authentication, specifically see the blog "Cache-control"
- 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
- 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 .
- 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
- content-encoding: gzip //Tell the client that the resource should be decoded using gzip
- Connection: keep-alive //Tell the client server that the TCP connection is also a long connection
HTTP Common header information