about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-09-13 14:45:51 +0200
committerAlan Pearce2023-09-13 14:45:51 +0200
commitda0355160e9603f097438c446ef1f9c992758ddb (patch)
treede5d38a8bd65d93ac0d31f4400a9e407df864ca6
parentb52a1c8420fafd52fbc115a67e56db6e6a2d3875 (diff)
downloadhomestead-da0355160e9603f097438c446ef1f9c992758ddb.tar.lz
homestead-da0355160e9603f097438c446ef1f9c992758ddb.tar.zst
homestead-da0355160e9603f097438c446ef1f9c992758ddb.zip
Send headers with 304 responses
-rw-r--r--src/index.ts2
1 files changed, 1 insertions, 1 deletions
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(",")