summaryrefslogtreecommitdiff
path: root/decorate.c
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2012-03-29 12:45:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-03-30 16:08:52 (GMT)
commitb7d565ea4c2bd6d0c79e512eeca77beb15736f80 (patch)
tree83e190f2b2240df3b9920f1341ec0c27ae4e561e /decorate.c
parente1c3643ff78610d2e6b42c206cd5ed33a9353285 (diff)
downloadgit-b7d565ea4c2bd6d0c79e512eeca77beb15736f80.zip
git-b7d565ea4c2bd6d0c79e512eeca77beb15736f80.tar.gz
git-b7d565ea4c2bd6d0c79e512eeca77beb15736f80.tar.bz2
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 'decorate.c')
0 files changed, 0 insertions, 0 deletions