Re: [PATCHv2 6/6] gitweb: check if-modified-since for feeds

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jakub Narebski
Date: Wednesday, February 4, 2009 - 7:03 pm

On Mon, 26 Jan 2009, Giuseppe Bilotta wrote:


It looks now quite nice, but I'd like to see information about
dependencies for this feature in the commit message, something like:

   This feature (terminating early with '304 Not Modified' in response
   to 'If-Modified-Since' conditional request) requires having either
   HTTP::Date module (from libwww-perl) or Time::ParseDate module.
   If neither is present gitweb falls back to earlier behaviour of not
   reacting to 'If-Modified-Since'.

Note also (although I'm not sure if it is worth mentioning in commit
message) that it doesn't save gitweb as much work as one could think,
because at this place the whole list of commits is already generated
and parsed.  What we save is cost of running git-diff-tree for each
commit (we could do better here, I think), and of course bandwidth.


I wonder if it would be possible to separate this code into subroutine,
to make it possible to have support for "cache control" conditional
requests also in other cases where it might help (for the future of
course, not in this commit).

Perhaps if we run gitweb from Apache mod_perl in compatibility mode
(ModPerl::Registry) to use Apache Perl API to respond to 
'If-Modified-Since' ($r->is_fresh or something). But that is also
just idea for the future improvement.


Here I think:

Acked-by: Jakub Narebski <jnareb@gmail.com>


Nitpick: either follow aligning on '=' characters, or skip it
altogether and always use one space before '=' in this fragment.


Good.


-- 
Jakub Narebski
Poland
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCHv2 0/6] gitweb: feed metadata enhancements, Giuseppe Bilotta, (Mon Jan 26, 4:50 am)
[PATCHv2 1/6] gitweb: channel image in rss feed, Giuseppe Bilotta, (Mon Jan 26, 4:50 am)
[PATCHv2 2/6] gitweb: feed generator metadata, Giuseppe Bilotta, (Mon Jan 26, 4:50 am)
[PATCHv2 3/6] gitweb: rss feed managingEditor, Giuseppe Bilotta, (Mon Jan 26, 4:50 am)
[PATCHv2 4/6] gitweb: rss channel date, Giuseppe Bilotta, (Mon Jan 26, 4:50 am)
[PATCHv2 6/6] gitweb: check if-modified-since for feeds, Giuseppe Bilotta, (Mon Jan 26, 4:50 am)
Re: [PATCHv2 0/6] gitweb: feed metadata enhancements, Junio C Hamano, (Wed Jan 28, 1:58 pm)
Re: [PATCHv2 0/6] gitweb: feed metadata enhancements, Jakub Narebski, (Wed Jan 28, 2:48 pm)
Re: [PATCHv2 0/6] gitweb: feed metadata enhancements, Giuseppe Bilotta, (Wed Jan 28, 2:57 pm)
Re: [PATCHv2 0/6] gitweb: feed metadata enhancements, Junio C Hamano, (Wed Jan 28, 3:03 pm)
Re: [PATCHv2 1/6] gitweb: channel image in rss feed, Jakub Narebski, (Wed Feb 4, 3:56 pm)
Re: [PATCHv2 2/6] gitweb: feed generator metadata, Jakub Narebski, (Wed Feb 4, 4:15 pm)
Re: [PATCHv2 3/6] gitweb: rss feed managingEditor, Jakub Narebski, (Wed Feb 4, 4:19 pm)
Re: [PATCHv2 4/6] gitweb: rss channel date, Jakub Narebski, (Wed Feb 4, 4:24 pm)
Re: [PATCHv2 6/6] gitweb: check if-modified-since for feeds, Jakub Narebski, (Wed Feb 4, 7:03 pm)
Re: [PATCHv2 1/6] gitweb: channel image in rss feed, Giuseppe Bilotta, (Fri Feb 6, 3:55 am)
Re: [PATCHv2 2/6] gitweb: feed generator metadata, Giuseppe Bilotta, (Fri Feb 6, 4:01 am)
Re: [PATCHv2 3/6] gitweb: rss feed managingEditor, Giuseppe Bilotta, (Fri Feb 6, 4:03 am)
Re: [PATCHv2 4/6] gitweb: rss channel date, Giuseppe Bilotta, (Fri Feb 6, 4:10 am)
Re: [PATCHv2 6/6] gitweb: check if-modified-since for feeds, Giuseppe Bilotta, (Fri Feb 6, 4:19 am)
Re: [PATCHv2 2/6] gitweb: feed generator metadata, Jakub Narebski, (Fri Feb 6, 4:21 am)
Re: [PATCHv2 0/6] gitweb: feed metadata enhancements, Jakub Narebski, (Fri Feb 6, 3:42 pm)
Re: [PATCHv2 0/6] gitweb: feed metadata enhancements, Junio C Hamano, (Fri Feb 6, 5:24 pm)