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>
This commit is contained in:
parent
0cf31285a0
commit
2757b54d46
@ -6015,7 +6015,7 @@ sub git_feed {
|
|||||||
}
|
}
|
||||||
if (defined($commitlist[0])) {
|
if (defined($commitlist[0])) {
|
||||||
%latest_commit = %{$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(
|
print $cgi->header(
|
||||||
-type => $content_type,
|
-type => $content_type,
|
||||||
-charset => 'utf-8',
|
-charset => 'utf-8',
|
||||||
|
Loading…
Reference in New Issue
Block a user