diff options
author | W. Trevor King <wking@drexel.edu> | 2012-03-29 08:45:48 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-30 09:08:52 -0700 |
commit | b7d565ea4c2bd6d0c79e512eeca77beb15736f80 (patch) | |
tree | 83e190f2b2240df3b9920f1341ec0c27ae4e561e /t/t3412-rebase-root.sh | |
parent | gitweb: add `status` headers to git_feed() responses. (diff) | |
download | tgif-b7d565ea4c2bd6d0c79e512eeca77beb15736f80.tar.xz |
gitweb: refactor If-Modified-Since handling
The current gitweb only generates Last-Modified and handles
If-Modified-Since headers for the git_feed action. This patch breaks
the Last-Modified and If-Modified-Since handling code out from
git_feed into a new function exit_if_unmodified_since. This makes the
code easy to reuse for other actions.
Only gitweb actions which can easily calculate a modification time
should use exit_if_unmodified_since, as the goal is to balance local
processing time vs. upload bandwidth.
Signed-off-by: W Trevor King <wking@drexel.edu>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3412-rebase-root.sh')
0 files changed, 0 insertions, 0 deletions