,

Cloudflare R2 for WordPress media: pros, cons, real setup

Cloudflare r2 wordpress media setup: zero egress fees, S3 compatibility, and the honest pros and cons in 2026.

Abstract cloud computing network

Cloudflare r2 wordpress media offload became the bandwidth-conscious choice in 2026. R2 is S3 compatible, has zero egress fees, and pairs naturally with Cloudflare CDN. This guide covers the real pros, the honest cons, and the exact setup.

Why R2 took off for WordPress

R2 charges for storage but not for egress. For a WordPress site that serves millions of image impressions a month, zero egress fees translate to a flat predictable bill regardless of traffic.

Combined with Cloudflare CDN sitting in front, R2 effectively gives you global delivery at a price competitive with the cheapest storage providers.

The honest cons

R2 is younger than S3, with shorter incident history. Some advanced S3 features have no R2 equivalent yet. Object storage class transitions, fine grained lifecycle rules, and a few SDK quirks all behave slightly differently.

For a standard WordPress media offload these gaps do not matter. For a complex enterprise pipeline they might.

The setup that just works

Create an R2 bucket in your Cloudflare dashboard. Generate an R2 API token with read and write on that bucket. Install Defyn Media Offload, choose R2 as the backend, paste in the endpoint URL, access key, and secret key.

the Defyn Media Offload plugin treats R2 like any other S3 compatible store. The same plugin handles uploads, URL rewrites, and migration. There is no R2 specific setup beyond the credentials.

Pairing R2 with Cloudflare CDN

Bind a custom hostname to the R2 bucket. Now uploads land in R2 and reads go through Cloudflare CDN automatically. Cache rules on the hostname control how aggressively edge nodes cache image responses.

For most WordPress sites a one year cache TTL on /wp-content/uploads/ is the right default. Image URLs change when content changes because WordPress includes a timestamp.

What it actually costs

Storage runs about fifteen cents per gigabyte per month. Class A operations, like writes, are small per request fees. Class B operations, like reads, are even smaller. Egress is zero.

For a hundred gigabyte library serving a million requests a month, the bill is roughly fifteen dollars. Compare that to S3 plus CloudFront for the same workload, which is usually three to five times more.

Frequently asked questions

Is cloudflare r2 wordpress media offload reliable enough for production?

Yes. R2 has been generally available since 2022 and has powered production WordPress sites for years now. Reliability is on par with S3.

Do I need a Cloudflare CDN account?

Free Cloudflare is enough to bind a custom hostname to an R2 bucket. You only pay for R2 storage and operations.

Can I migrate from S3 to R2 without breaking URLs?

Yes if you use the same plugin. Copy the bucket contents with rclone, switch the plugin backend, and the URLs rewrite to the new host on read.

What if Cloudflare has an outage?

Cached images keep serving from edge nodes during a short Cloudflare incident. New uploads queue until R2 is reachable again.

Claire Smith Avatar
Sponsored Loved this story? Defyn turns articles like this into the websites your competitors wish they had. Talk to us → defyn.com.au