From a7c67d3e612b27e2879337d273e20a4fb421c02c Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Wed, 4 Mar 2026 00:47:49 +0100 Subject: [PATCH] fix: use status code 304 instead for 412 error when etag matches (#1330) Closes #1323 --- lb/proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lb/proxy.ts b/lb/proxy.ts index 06cc6faa6..108435663 100644 --- a/lb/proxy.ts +++ b/lb/proxy.ts @@ -176,7 +176,7 @@ export async function proxyToR2( headers.set("content-length", object.size.toString()); if (!("body" in object)) { - return new Response(null, { status: 412, headers }); + return new Response(null, { status: 304, headers }); } const response = new Response(object.body, { headers });