I do want to get to make list operations more like R2, but I'm not sure we'll be able to do that thi
I do want to get to make list operations more like R2, but I'm not sure we'll be able to do that this year.
ty
4453161ad26e32a617c6c6d4b837c9d9/workers/kv/namespaces/989796259c334124b2e868bd9a0c3849

// @todo the whole logic looks strange, add test, write what it solves
if (asset) {
finalRequest = new Request(
url.origin + "/" + asset,
request as RequestInit
);
}
const response = await getAssetFromKV(
{
request: finalRequest,
waitUntil(promise) {
return ctx.waitUntil(promise);
},
},
{
ASSET_NAMESPACE: env.__STATIC_CONTENT,
ASSET_MANIFEST: assetManifest,
cacheControl: {
browserTTL: ttl,
edgeTTL: ttl,
},
}
);
return response;