`put` will want the full file but you can make ranged reads against `match`
put will want the full file but you can make ranged reads against matchput a 60 GB file in every requested colo…put just doesn't like the status code of 206 - but if you store a ranged response w/ a body of 200 then you'll be matching any ranged read against that unless you store the requested range as apart of the cache key.iata-AtoD.json, iata-DtoH.json, etc)
tylet IATA_LOOKUP
export default {
async fetch(req, env) {
if (IATA_LOOKUP === undefined) {
IATA_LOOKUP = await env.KV.get('iata.json', { type: 'json' })
}
// process using IATA_LOOKUP
return new Response(...)
}
}