feat: some shit

This commit is contained in:
max_richter 2023-07-26 16:26:15 +02:00
parent c61054990b
commit d43c661126

View File

@ -110,6 +110,8 @@ export const handler = async (
const imageId = `${imageUrl}.${params.width}.${params.height}`; const imageId = `${imageUrl}.${params.width}.${params.height}`;
const cachedResponse = await cache.get(imageId); const cachedResponse = await cache.get(imageId);
if (cachedResponse) { if (cachedResponse) {
const _r = await cachedResponse;
console.log({ cachedResponse, _r });
return (await cachedResponse).clone(); return (await cachedResponse).clone();
} }