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

Re: Last-Modified HTTP header in GET responses

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 04 Jan 2016 12:59:16 +0000

Branko Čibej <brane_at_apache.org> writes:

> The only really valid reason for removing that code is your point that
> we can't guarantee compliance of the Last-Modified header value compared
> with the Date header value. There's another solution for that ... we
> could check those values in mod_dav_svn and adjust Last-Modified if
> necessary.

Apache does this for us already: Subversion calls ap_set_last_modified()
and Apache calls ap_rationalize_mtime(). Testing with svn:date set in
the future:

$ svn pg --revprop -r2 svn:date wc
2017-01-04T12:52:02.154787Z

I see a Last-Modified varying with the current time:

Last-Modified: Mon, 04 Jan 2016 12:57:06 GMT\r

Last-Modified: Mon, 04 Jan 2016 12:57:53 GMT\r

-- 
Philip Martin
WANdisco
Received on 2016-01-04 13:59:22 CET

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.