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.