in cloudflare/src/main.ts [204:222]
status: notFound ? 404 : (range ? 206 : 200),
headers: {
"accept-ranges": "bytes",
"access-control-allow-origin": env.ALLOWED_ORIGINS || "",
"etag": notFound ? "" : file.httpEtag,
// if the 404 file has a custom cache control, we respect it
"cache-control": file.httpMetadata?.cacheControl ?? (notFound || healthCheck ? "" : env.CACHE_CONTROL || ""),
"expires": file.httpMetadata?.cacheExpiry?.toUTCString() ?? "",
"last-modified": notFound ? "" : file.uploaded.toUTCString(),
"content-encoding": file.httpMetadata?.contentEncoding ?? "",
"content-type": file.httpMetadata?.contentType ?? "application/octet-stream",
"content-language": file.httpMetadata?.contentLanguage ?? "",
"content-disposition": file.httpMetadata?.contentDisposition ?? "",
"content-range": (range && !notFound ? getRangeHeader(range, file.size) : ""),
"content-length": (range && !notFound ? (rangeHasLength(range) ? range.length : range.suffix) : file.size).toString(),
"cross-origin-resource-policy": "cross-origin",
}