gitweb: add If-Modified-Since handling to git_snapshot().
commit8745db63ca65c28221229df3d945cb10045c29dc
authorW. Trevor King <wking@drexel.edu>
Thu, 29 Mar 2012 12:45:49 +0000 (29 08:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Mar 2012 16:09:59 +0000 (30 09:09 -0700)
tree0352040e51474d7b93f9711d68c5af63df0aa819
parentb7d565ea4c2bd6d0c79e512eeca77beb15736f80
gitweb: add If-Modified-Since handling to git_snapshot().

Because snapshots can be large, you can save some bandwidth by
supporting caching via If-Modified-Since.  This patch adds support for
the i-m-s request to git_snapshot() if the request is a commit.
Requests for snapshots of trees, which lack well defined timestamps,
are still handled as they were before.

Signed-off-by: W Trevor King <wking@drexel.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl
t/t9501-gitweb-standalone-http-status.sh