Skip to content

Commit 2757b54

Browse files
Oblomovgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0cf3128 commit 2757b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6015,7 +6015,7 @@ sub git_feed {
60156015
}
60166016
if (defined($commitlist[0])) {
60176017
%latest_commit = %{$commitlist[0]};
6018-
%latest_date = parse_date($latest_commit{'author_epoch'});
6018+
%latest_date = parse_date($latest_commit{'committer_epoch'});
60196019
print $cgi->header(
60206020
-type => $content_type,
60216021
-charset => 'utf-8',

0 commit comments

Comments
 (0)