188.8.131.52 HTTP Metadata Retrieval
The sequence of messages for an HTTP request for Content Caching and Retrieval is shown in the following figure and consists of the following steps:
Figure 2: HTTP metadata retrieval
The client application opens a URL.
The client side adds a PeerDist header to an outgoing HTTP request.
The HTTP server side performs any required access checks, and then, if valid, requests the data. If hashes are available, they are returned to the client.
If hashes are not available, a normal HTTP response is returned immediately to the client.
If the requested data and hashes are available, the data is placed in the distributed cache.
Any subsequent request for the same data that is identified by the URL results in metadata being returned.
Metadata is returned to the content client by using the Peer Content Caching and Retrieval: Hypertext Transfer Protocol (HTTP) Extensions, as described in [MS-PCCRTP].
The hash list is passed to the BranchCache Service to look up the data.
For unsuccessful cache lookups (missing block), a range request, including the byte range, is broadcast by using the Peer Content Caching and Retrieval Discovery Protocol, as described in [MS-PCCRD]. If data is found in a peer client, the data is retrieved by using the Peer Content Caching and Retrieval: Retrieval Protocol [MS-PCCRR].
If data is retrieved, it is added to the cache, and the hash list is made available for discovery. If the client does not receive the associated data (that is, the original content is unavailable), a suitable (HTTP) error is returned to the application.
If the data is retrieved, it is returned to the requesting content client.