On 7/2/07, <b class="gmail_sendername">Robert Sayre</b> <<a href="mailto:sayrer@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sayrer@gmail.com</a>> wrote:<div><span class="gmail_quote">
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Basically, I think offline caches should respect the Vary: HTTP<br>header, and maybe more. Applications will need to do this right
<br>anyway, if they want to function correctly in the presence of ISP HTTP<br>proxies (AOL, TMobile, etc),  corporate firewalls, and server-side
<br>stuff like Citrix Netscalers.</blockquote><div><br>No they don't. For example, they can just use Cache-Control:private to bypass those caches. That's what GMail does.<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
To me, it looks like the caching mechanisms in HTTP 1.1 can satisfy<br>this requirement. I think Rob is correct that it adds substantial<br>complexity, but it is already required.</blockquote><br>In what way is it already required? Browsers are not required to store multiple resources for the same URI. We don't; we just use Vary to help (in)validate the resource we've got.
<br>
</div></div><br>So how would you use Vary here, anyway? Serve pages with "Vary: Cookie"? I guess that could work, but app authors would have to pass no cookies except for the session cookie. That could be difficult.
<br><br>Using an HTTP response header to specify how a URI can map to multiple resources is a good idea, though. It avoids ambiguities and offers a simple default. If we have to have that feature, this seems like a good way to do it.
<br><br clear="all">Rob<br>-- <br>"Two men owed money to a certain moneylender. One owed him five hundred denarii, and the other fifty. Neither of them had the money to pay him back, so he canceled the debts of both. Now which of them will love him more?" Simon replied, "I suppose the one who had the bigger debt canceled." "You have judged correctly," Jesus said. [Luke 7:41-43]