From da0355160e9603f097438c446ef1f9c992758ddb Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 13 Sep 2023 14:45:51 +0200 Subject: Send headers with 304 responses --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 076b7ee..db06d3b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -115,7 +115,7 @@ export default { parseIfModifiedSinceHeader(request.headers.get("if-modified-since")) >= file?.mtime.getTime() ) { - return new Response("", { status: 304 }); + return new Response("", { status: 304, headers: defaultHeaders }); } const encodings = (request.headers.get("accept-encoding") || "") .split(",") -- cgit 1.4.1