First, common tools
Under Linux: Curl command, I parameter can view HTTP head information.
Firefox:firebug, Httpfox
Second, common HTTP head information
Third, browser caching mechanism
Using CTRL+F5, you can force the browser to make a request directly to the URL without using cached information. At this point, 2 additional parameters are added to the HTTP head
1. Cache-control Field
Pragma:no-cache and Cache-control:no-cache,cache-control are better supported by browsers and have higher precedence, overriding the meaning of other fields when used with other fields, such as expires.
The list of optional values for the Cache-control field is as follows:
2. Expires field
Usually the format is Tue, 2026 22:46:56 GMT, before the browser initiates the request, the field of the resource is checked before the request is re-initiated to the server if it expires.
3, Last-modified/etag
Represents the last modification time of the resource, which is static (static resources are automatically added last-modified) or dynamic (the servlet provides the Getlastmodified method), which determines whether the resource is up-to-date.
The general server response header returns a last-modified field that tells the browser when the resource was last modified, and when the browser requests it again, the If-modified-since field is added, asking if the cache page is up to date. If not up-to-date, the server returns 304 and does not transmit data.
Four, nginx configuration cache information
Pending additions
02--http request header and cache knowledge