From: Giuseppe Bilotta Date: Mon, 26 Jan 2009 11:50:15 +0000 (+0100) Subject: gitweb: last-modified time should be commiter, not author X-Git-Tag: v1.6.2-rc0~72 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2757b54d469783ea9eac3ba366c4ffaa194c990d;p=git.git gitweb: last-modified time should be commiter, not author The last-modified time header added by RSS to increase cache hits from readers should be set to the date the repository was last modified. The author time in this respect is not a good guess because the last commit might come from a oldish patch. Use the committer time for the last-modified header to ensure a more correct guess of the last time the repository was modified. Signed-off-by: Giuseppe Bilotta Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 756868a7f..8c49c75f1 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -6015,7 +6015,7 @@ sub git_feed { } if (defined($commitlist[0])) { %latest_commit = %{$commitlist[0]}; - %latest_date = parse_date($latest_commit{'author_epoch'}); + %latest_date = parse_date($latest_commit{'committer_epoch'}); print $cgi->header( -type => $content_type, -charset => 'utf-8',