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.

a cache cannot determine from the request headers of a subsequentrequest whether this response is the appropriate representation. Seesection 13.6 <strong>for</strong> use of the Vary header field by caches.Vary = "Vary" ":" ( "*" | 1#field-name )An HTTP/1.1 server SHOULD include a Vary header field with anycacheable response that is subject to server-driven negotiation.Doing so allows a cache to properly interpret future requests on thatresource and in<strong>for</strong>ms the user agent about the presence of negotiation<strong>Fielding</strong>, et al. Standards Track [Page 145]RFC <strong>2616</strong> HTTP/1.1 June 1999on that resource. A server MAY include a Vary header field with anon-cacheable response that is subject to server-driven negotiation,since this might provide the user agent with useful in<strong>for</strong>mation aboutthe dimensions over which the response varies at the time of theresponse.A Vary field value consisting of a list of field-names signals thatthe representation selected <strong>for</strong> the response is based on a selectionalgorithm which considers ONLY the listed request-header field valuesin selecting the most appropriate representation. A cache MAY assumethat the same selection will be made <strong>for</strong> future requests with thesame values <strong>for</strong> the listed field names, <strong>for</strong> the duration of time <strong>for</strong>which the response is fresh.The field-names given are not limited to the set of standardrequest-header fields defined by this specification. Field names arecase-insensitive.A Vary field value of "*" signals that unspecified parameters notlimited to the request-headers (e.g., the network address of theclient), play a role in the selection of the response representation.The "*" value MUST NOT be generated by a proxy server; it may only begenerated by an origin server.14.45 ViaThe Via general-header field MUST be used by gateways and proxies toindicate the intermediate protocols and recipients between the useragent and the server on requests, and between the origin server andthe client on responses. It is analogous to the "Received" field ofRFC 822 [9] and is intended to be used <strong>for</strong> tracking message <strong>for</strong>wards,avoiding request loops, and identifying the protocol capabilities ofall senders along the request/response chain.

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

Saved successfully!

Ooh no, something went wrong!