[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: General question on Serf

From: Greg Stein <gstein_at_gmail.com>
Date: Wed, 26 Sep 2012 22:38:40 -0400

On Wed, Sep 26, 2012 at 2:11 PM, Philip Martin
<philip.martin_at_wandisco.com> wrote:
> Lieven Govaerts <svnlgo_at_mobsol.be> writes:
>
>> If the intention is to instruct the proxy that a cached response is
>> only valid for a certain X-SVN-VR-Base header, then that is what the
>> "Vary" header is for.
>> So with:
>> Vary: X-SVN-VR-Base
>> in the response, the proxy should only return a cached response if the
>> request for that cached response had the same value for X-SVN-VR-Base
>> as the new request.
>
> Sounds like we really ought to do that. I've raised
> http://subversion.tigris.org/issues/show_bug.cgi?id=4235

Yup. That's the right answer, and it appears that mod_dav_svn does
*not* do that. I've scanned through httpd, mod_dav, and mod_dav_svn
... there aren't any good helpers for managing the Vary: header :-(

But yes: that header is what proxies (should) use for determining
whether a response is based varies on header values, in addition to
the URI itself.

Cheers,
-g
Received on 2012-09-27 04:39:47 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.