CDN Integration
Jetweb includes a built-in CDN for serving optimized images directly from our servers.
How It Works
When you convert an image via the API, both WebP and AVIF versions are automatically saved to our CDN. You receive signed URLs in the response headers:
X-CDN-Image-ID: abc123-def456-...
X-CDN-URL-WebP: https://cdn.jetweb.baduno.com/abc123.webp?token=...&sig=...
X-CDN-URL-AVIF: https://cdn.jetweb.baduno.com/abc123.avif?token=...&sig=...
Signed URLs
CDN URLs are secured with HMAC signatures. Each URL includes:
- token - Your access token
- sig - Cryptographic signature
This ensures only authorized users can access your images.
Using CDN in WordPress
Save the CDN URLs from response headers and use them in your theme:
<picture>
<source srcset="https://cdn.jetweb.baduno.com/id.avif?..." type="image/avif">
<source srcset="https://cdn.jetweb.baduno.com/id.webp?..." type="image/webp">
<img src="/original.jpg" alt="Image">
</picture>
CDN Endpoints
| GET /{id}.webp | Download WebP image |
| GET /{id}.avif | Download AVIF image |
| GET /{id}/info | Get image metadata |
| GET /health | CDN health check |