message: fix(core): use existing upstream `Cache-Control` if present on upstream response
diff: @@ -257,6 +257,12 @@ export async function imageOptimizer(
  upstreamBuffer = Buffer.from(await upstreamRes.arrayBuffer());
  upstreamType = upstreamRes.headers.get("Content-Type") ?? undefined;
  maxAge = getMaxAge(upstreamRes.headers.get("Cache-Control") ?? undefined);
  + if (upstreamRes.headers.get("Cache-Control")) {
  + res.setHeader(
  + "Cache-Control",
  + upstreamRes.headers.get("Cache-Control") as string
  + );
  + }
  } else {
  let objectKey;
  try {
  