From 6ead07550059c14306f2c74c564b23793f033bb8 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 14 Aug 2026 13:06:45 -1000 Subject: Drop the Last-Modified, Expires and ETag headers --- source/ui-shared.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'source/ui-shared.c') diff --git a/source/ui-shared.c b/source/ui-shared.c index 12df3b2..74c1c48 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -315,20 +315,6 @@ static void print_rel_date(time_t t, int tz, double count, const char *class, htmlf("'>%.0f %s", count, suffix); } -static char *http_date(time_t t) -{ - static char day[][4] = - {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; - static char month[][4] = - {"Jan", "Feb", "Mar", "Apr", "May", "Jun", - "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; - struct tm tm; - gmtime_r(&t, &tm); - return cgit_fmt("%s, %02d %s %04d %02d:%02d:%02d GMT", day[tm.tm_wday], - tm.tm_mday, month[tm.tm_mon], 1900 + tm.tm_year, - tm.tm_hour, tm.tm_min, tm.tm_sec); -} - static void print_rel_vcs_link(const char *url) { html("