diff options
author | Alan Pearce | 2023-09-13 14:45:51 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-13 14:45:51 +0200 |
commit | da0355160e9603f097438c446ef1f9c992758ddb (patch) | |
tree | de5d38a8bd65d93ac0d31f4400a9e407df864ca6 /src | |
parent | b52a1c8420fafd52fbc115a67e56db6e6a2d3875 (diff) | |
download | homestead-da0355160e9603f097438c446ef1f9c992758ddb.tar.lz homestead-da0355160e9603f097438c446ef1f9c992758ddb.tar.zst homestead-da0355160e9603f097438c446ef1f9c992758ddb.zip |
Send headers with 304 responses
Diffstat (limited to 'src')
-rw-r--r-- | src/index.ts | 2 |
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(",") |