Skip to content
odivioptimizer Docs
Extension

R2 Offload Media

Connect Cloudflare R2 and test your media delivery.

Before you begin#

Open Divi Optimizer → Extensions and enable R2 Offload Media. This extension is optional and starts disabled on a new installation.

Set it up#

  1. Prepare your Cloudflare R2 bucket and S3-compatible credentials. See Cloudflare’s R2 setup guide.
  2. Open the R2 settings from the enabled extension. Enter Account ID, Bucket Name, Access Key ID, and Secret Access Key.
  3. Configure the public delivery domain when using direct R2 delivery. Review the path prefix.
  4. Use Test Connection, then Save Settings.
  5. Upload one test image and verify it in both the Media Library and a public page before migrating existing media.

Check the result#

Keep local copies until you have verified your delivery URL and recovery plan. Bulk migration and local cleanup are separate actions. R2 is an external service with its own usage charges; the plugin does not provide a storage account.

If the connection fails#

  • Check that the account, bucket, and credentials belong to the same R2 setup.
  • Confirm that the credentials have the required access to the selected bucket.
  • Check that your host permits outbound connections to the R2 endpoint.
  • Use the connection error to narrow the issue before retrying a migration.

If uploads succeed but images do not load, check your public delivery domain and the URL of a single test image. Do not share secret keys in screenshots or support messages.

Need help?#

If the feature does not appear, confirm that the extension is enabled, save its settings, and reload the relevant screen. See Troubleshooting for a structured checklist.

Still need a hand?

Share your setup and we’ll help you find the next step.

Get support
KEEP EXPLORINGTroubleshooting
© 2026 Divi OptimizerMade for your next Divi build.Need help?