]> Lady’s Gitweb - Gitweb/commit
gitweb: refactor If-Modified-Since handling
authorW. Trevor King <redacted>
Thu, 29 Mar 2012 12:45:48 +0000 (08:45 -0400)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
commit8a559bfb633a7d962ae58871f6444640ff59e0198fe04deaa0e95707b61b6939
tree03b58f2edea7f206f7db451f4e941ba0ae64ac40c20f9f95765739314b1ab696
parentfae278d5b93f925692be8fc843788e0fa2135de7546f002724522f2ec33278d9
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 <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.178086 seconds and 5 git commands to generate.