[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 14:03:12 +0000

Philip Martin <philip.martin_at_wandisco.com> writes:

> $ 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

The patch may change the caching behaviour for svn:date in the future: I
see a change with my Firefox 43 browser.

When the Last-Modified header is present my browser sends a repeat
request with an If-Modified-Since header and since the date is changing
it gets back a 200 with the content repeated. With the patch applied
the browser no longer gets Last-Modified and no longer sends
If-Modified-Since, and this means its gets back a 304 Not Modified.

The overall effect is that omitting Last-Modified allows the browser to
cache files when svn:date is in the future.

-- 
Philip Martin
WANdisco
Received on 2016-01-04 15:03:27 CET

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