it does not do anything like letting a single cache lookup give back a response with a different URL.https://github.com/WICG/nav-speculation/blob/main/no-vary-search.md
R2Bucket. Basic usage, If-Unmodified-Since a R2 specific thing? For some reason I thought it was in the S3 API for putobject, but it doesn't seem like it is..walterwick.de A @1.1.1.1 +noall +answerdiggy diggy hole
•4/1/24, 5:31 PM
await-ing the .put() call thoughawait fixed it. Weird that it was working locally tho. Thanks for your help!



const localizedBucket = localizeBucket({
buckets: {
wnam: env.WNAM_BUCKET,
enam: env.ENAM_BUCKET,
weur: env.WEUR_BUCKET,
eeur: env.EEUR_BUCKET,
apac: env.APAC_BUCKET,
},
fallbackRegion: 'wnam',
});
const object = await localizedBucket.head('some-key', { request });NAME | TTL | DATA
--------------+------+---------------
walterwick.de | 284s | 172.67.180.219
walterwick.de | 284s | 104.21.83.189 app.post("/image", async (c) => {
const {file}: {file: File} = await c.req.parseBody();
if (!file) return c.json({ msg: "Invalid request" }, 400);
const body = await file.arrayBuffer()
const id = nanoid()
console.log(id, body);
c.env.BUCKET.put(id + ".bmp", body);
return c.json({id}, 200)
});https://azure-di-source-files.enam.ai.moda/83d6300e2bb85d71b49bedd61f19fc37?cache-control=private%2C+immutable%2C+no-transform%2C+max-age=31536000%2C+stale-while-revalidate=31536000%2C+stale-if-error=31536000%2C+s-maxage=0&expires=Thu%2C+01+Jan+1970+00:00:00+GMT&ttl=604800&verify=1711929600-AXsEtplmiIONuUwUTfXh%2BVbEtqDo4rE0kPjgyN37j6w=