So, objects may be cached and writing to R2 won't purge that
So, objects may be cached and writing to R2 won't purge that
x-amz-expiration in metadata for objects to delete them, without having set up a lifecycle in r2?
R2PutOptions? https://developers.cloudflare.com/r2/api/workers/workers-api-reference/#r2putoptions



%23x-amz-expirationR2PutOptions%23const object = await env.BUCKET.get("key from request");
const headers = new Headers();
object.writeHttpMetadata(headers);
headers.set('etag', object.httpEtag);
return new Response(object.body, { headers });// e.g. via curl with --data-binary "@somefile.jpg"
await bucket.put(key, req.body, { httpMetadata: { contentType } });
// from a web page
const formData = await req.formData();
const file = formData.get('file') as File
const body = await file.arrayBuffer();
await bucket.put(file.name, body, { httpMetadata: { contentType: file.type } });await env.Testing_bucket.put(key, request.body, request.headers);