Re: Extension headers and caching

Anne van Kesteren wrote:
> Hi,
> If I perform a request to a server and then perform a subsequent request 
> with an extension header set, should I get a cached copy or a fresh one 
> for the subsequent request? Would it be different if the server had 
> replied with a Vary header for the extension header?


if the response to the first request *was* cacheable, and the server 
varies the response based on that Custom header, then it should have 
included the name of that custom header in the Vary response header. If 
it didn't, that would be a bug.

That being said, IE has lots of issues with Vary, so I wouldn't be 
surprised if servers worked around that by not specifying Vary.

Related: <>

> It has been suggested that I should define how this case works in 
> XMLHttpRequest, but I rather just defer to the HTTP for this.

In theory: yes, in practice it might be useful to call that out in the 
XHR spec as well (if you finish before HTTPbis :-).

BR, Julian

Received on Monday, 9 February 2009 11:52:04 UTC