pnpm link
useRequest
useRequest$1
responseHeaders
export function Cache({ cacheControl, cacheTag, etag, expires, lastModified,}: CacheProps) { const event = useRequest(); if (isServer) { console.log(event); cacheControl && event.responseHeaders.append("Cache-Control", cacheControl); cacheTag && event.responseHeaders.append("Cache-Tag", cacheTag); etag && event.responseHeaders.append("ETag", etag); expires && event.responseHeaders.append("Expires", expires); lastModified && event.responseHeaders.append("Last-Modified", lastModified); } // We don't want to actually render anything. return null;}