11.07.2015 Views

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

according to the rules in section 4.4. A transparent proxy MUSTpreserve the entity-length (section 7.2.2) of the entity-body,although it MAY change the transfer-length (section 4.4).<strong>Fielding</strong>, et al. Standards Track [Page 93]RFC <strong>2616</strong> HTTP/1.1 June 199913.5.3 Combining HeadersWhen a cache makes a validating request to a server, and the serverprovides a 304 (Not Modified) response or a 206 (Partial Content)response, the cache then constructs a response to send to therequesting client.If the status code is 304 (Not Modified), the cache uses the entitybodystored in the cache entry as the entity-body of this outgoingresponse. If the status code is 206 (Partial Content) and the ETag orLast-Modified headers match exactly, the cache MAY combine thecontents stored in the cache entry with the new contents received inthe response and use the result as the entity-body of this outgoingresponse, (see 13.5.4).The end-to-end headers stored in the cache entry are used <strong>for</strong> theconstructed response, except that- any stored Warning headers with warn-code 1xx (see section14.46) MUST be deleted from the cache entry and the <strong>for</strong>wardedresponse.- any stored Warning headers with warn-code 2xx MUST be retainedin the cache entry and the <strong>for</strong>warded response.- any end-to-end headers provided in the 304 or 206 response MUSTreplace the corresponding headers from the cache entry.Unless the cache decides to remove the cache entry, it MUST alsoreplace the end-to-end headers stored with the cache entry withcorresponding headers received in the incoming response, except <strong>for</strong>Warning headers as described immediately above. If a header fieldnamein the incoming response matches more than one header in thecache entry, all such old headers MUST be replaced.In other words, the set of end-to-end headers received in theincoming response overrides all corresponding end-to-end headersstored with the cache entry (except <strong>for</strong> stored Warning headers with

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!