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-snapshot.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/ui-snapshot.c') diff --git a/source/ui-snapshot.c b/source/ui-snapshot.c index 0bab8ea..3a14e16 100644 --- a/source/ui-snapshot.c +++ b/source/ui-snapshot.c @@ -206,7 +206,6 @@ static int send_snapshot(const struct cgit_snapshot_format *format, "Not a commit reference: %s", hex); return 1; } - ctx.page.etag = oid_to_hex(&oid); ctx.page.mimetype = xstrdup(format->mimetype); ctx.page.filename = xstrdup(filename); cgit_print_http_headers(); @@ -241,7 +240,6 @@ static int send_sig(const struct cgit_snapshot_format *format, // act on. html("X-Content-Type-Options: nosniff\n"); html("Content-Security-Policy: default-src 'none'\n"); - ctx.page.etag = oid_to_hex(note); ctx.page.mimetype = xstrdup("application/pgp-signature"); ctx.page.filename = xstrdup(sig_filename); cgit_print_http_headers(); -- cgit v2.8.0