Hacker News new | ask | show | jobs
by Abishek_Muthian 1672 days ago
> We save 7TB per mo egress because of Cloudflare's free cache (through Workers) and pay nothing for it.

That's huge, Could you explain a bit more on how you achieve that? I've been exploring Cloudflare cache, AFAIK for anything not cached by default you need a special page rule e.g. for .html, I tried a wildcard domain.com/* and it doesn't seem to make any difference. Are you using workers to cache specific file types?

1 comments

> Are you using workers to cache specific file types?

Yes: Using Workers as an api gateway and the Cache API as CDN.

[0] https://developers.cloudflare.com/workers/learning/how-the-c...

Thanks, what type of files do you serve through that?
executables, raw binary files (like apache parquet), and (rarely) json.