How to preserve Content Credentials through a CDN
Image CDNs re-encode by default, and re-encoding destroys the signature. What to change, per vendor, and how to prove it worked.
Par c2pa.design · Mis à jour le 2026-09-09 · 3 min de lecture
A CDN that only caches bytes preserves everything, because it never touches the file. A CDN that resizes, converts to WebP or AVIF, or "optimises" is running an encoder, and an encoder writes a new file. The new file does not contain your manifest unless the encoder was specifically told to carry it, and even then the manifest is now invalid because the bytes it hashed no longer exist.
That is the whole problem, and it explains most of the missing credentials in production.
The two failure modes, which look identical from outside
Stripped. The manifest is gone. credential.status: "absent". Nothing distinguishes this
file from one that was never signed.
Broken. The manifest survived the transform but the pixels changed underneath it.
credential.status: "present_invalid". This is worse: you are serving a file that carries a
provenance claim it cannot support, and a careful verifier will say so out loud.
Both look like "C2PA does not work" from a distance. They need different fixes.
What to change, per vendor
| Vendor | Behaviour | What to do |
|---|---|---|
| Cloudflare Images | Has a Content Credentials preservation option | Turn it on; note that Polish, a separate feature, strips regardless |
| Cloudflare Polish | Re-encodes for size | Disable on paths serving signed assets |
| imgix, Cloudinary, Fastly IO | Re-encode by default | Serve signed originals from a path with transforms disabled |
| AWS Lambda@Edge / CloudFront resize | Whatever your function does | The function is yours; carry the manifest or do not resize |
| Vercel / Next.js image optimisation | Re-encodes | Bypass for signed assets, or serve them from a static path |
| Plain object storage + cache | No transform | Nothing to do; this is the reliable configuration |
Two structural approaches work, and you should pick one deliberately:
Serve the original. Signed assets get their own path with every transform disabled. You lose the bandwidth savings on those assets and you keep the credential. For a newsroom hero image, that is the right trade.
Re-sign after transform. The transform runs, and your own signing service signs the output with your certificate. Now the credential describes the file you actually serve, with your organisation as the signer and the original as an ingredient. This is the correct answer for anyone at scale, and it requires a signing certificate and a key you can protect.
What does not work is hoping. A transform that "usually preserves metadata" preserves EXIF and not JUMBF often enough that you will find out in production.
Proving it, rather than believing it
The test is two verifications and a diff:
- Verify the origin object. Record
credential.statusandasset.sha256. - Verify the URL your CDN actually serves, the way a browser would fetch it — including the
Acceptheader negotiation that decides whether you get WebP. - Compare.
Step two is the one people skip, because they test the origin and assume. The URL checker does exactly this fetch from our servers, and if you want it on every deploy rather than once, that is what a monitor is.
The header that changes the answer
Content negotiation means the same URL returns different bytes to different clients. A CDN that serves AVIF to Chrome and JPEG to an older client is running two encoders, and they do not necessarily behave the same way about metadata.
If your monitoring only ever fetches with one Accept header, it is testing one of your
outputs. Check the format your users actually receive, which is usually the modern one.
A checklist that fits on a card
- Signed assets served from a path with transforms disabled, or re-signed after transform.
- Polish, auto-optimisation and "strip metadata" audited once, properly, per path.
- Origin and CDN URL both verified, not just the origin.
- The check runs on every deploy, not once during the project.
- Coverage tracked over time, because the regression will arrive with a config change nobody associated with images.