We've actually agreed with @beelzabub in DMs that I'd get 1% of all Cache API bills <a:evil_parrot:4
We've actually agreed with @beelzabub in DMs that I'd get 1% of all Cache API bills 


sudo rm -rf
nooo how else do I stop thisA web application with 50,000 map loads using the Google Maps API will cost $350 per month.
A similar amount of traffic running through a Protomaps CDN install on Cloudflare, with an average of 20 tiles per session, costs fifty cents in Cloudflare Workers request fees.
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)let 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(...)
}
}