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 <giuseppe.bilotta@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Giuseppe Bilotta committed
Jan 26, 2009 at 12:50 UTC
2757b54d469783ea9eac3ba366c4ffaa194c990d
1 file changed
+1
-1
gitweb/gitweb.perl
+1
-1
@@ -6015,7 +6015,7 @@ sub git_feed {
6015
}
6016
if (defined($commitlist[0])) {
6017
%latest_commit = %{$commitlist[0]};
6018
- %latest_date = parse_date($latest_commit{'author_epoch'});
6018
+ %latest_date = parse_date($latest_commit{'committer_epoch'});
6019
print $cgi->header(
6020
-type => $content_type,
6021
-charset => 'utf-8',