300+ Points of Presence, tag-based cache purge, Cloudflare for SaaS custom hostnames with auto SSL, Workers integration β plus a generous free tier.
The largest CDN network in the world. Edge nodes in virtually every country.
Surgically invalidate groups of images by source, type, or any custom tag β without purging unrelated content. (Enterprise)
Auto-provision SSL certificates for customer vanity domains. Perfect for multi-tenant platforms.
Optional edge compute for request routing, header manipulation, and A/B testing at the edge.
Client β Cloudflare Edge (300+ PoPs)
β cache miss
Tiered Cache (regional shield)
β cache miss
Image Foundry Origin
β
Process image (sharp/libvips) β Disk Cache
β
Response with Cache-Control, ETag,
Vary: Accept, Cache-Tag headers
| Method | Endpoint | Plan Required |
|---|---|---|
| URL purge (30/batch) | DELETE /api/cdn/purge | All plans |
| Tag-based purge | DELETE /api/cdn/purge-tags | Enterprise |
| Full zone purge | DELETE /api/cdn/purge-all | All plans |
Image Foundry automatically batches large URL purge requests into 30-URL chunks to comply with Cloudflare's API limits.
Let your customers use their own domain β img.acme.com β with automatic SSL:
# 1. Register the hostname
POST /api/cdn/custom-hostname
{ "hostname": "img.acme.com" }
# 2. Customer adds DNS records:
# CNAME: img.acme.com β proxy.imgfoundry.io
# TXT: _cf-custom-hostname.img.acme.com β verification-token
# 3. Verify SSL status
GET /api/cdn/custom-hostname/img.acme.com/verify
β { "status": "active", "ssl": { "status": "active" } }
| Setting | Recommended | Why |
|---|---|---|
| Proxy (orange cloud) | β Enabled | Routes traffic through Cloudflare edge |
| Cache Everything rule | β Create rule | Cloudflare won't cache dynamic routes by default |
| Tiered Cache | β Enabled | Reduces origin hits via regional shielding |
| Polish | β Disabled | Image Foundry handles all optimisation |
| Mirage | β Disabled | Conflicts with URL-based transformations |
| HTTP/3 | β Enabled | Fastest transport for image delivery |
| Feature | Cloudflare | Bunny CDN |
|---|---|---|
| PoPs | 300+ | 197+ |
| Pricing | Plan-based (free tier) | Per-GB ($0.01+) |
| Tag-based purge | β (Enterprise) | β |
| URL-based purge | β (30/batch) | β |
| Custom hostnames | β (for SaaS) | β (free SSL) |
| Perma-Cache | β | β |
| Free plan | β Generous | β Trial only |
Add your zone, enable proxy, configure caching β done.