
內容簡介
CPW Media Offload for Cloudflare R2 將您的 WordPress 媒體庫複製到 Cloudflare R2 儲存桶,並重寫媒體 URL,使訪客從 Cloudflare 下載圖片、影片和文件,提升網站速度並減少伺服器負擔。
【主要功能】
• 將新媒體及縮圖上傳至 R2 儲存桶
• 可選擇成功上傳後刪除本地副本
• 重寫附件 URL 和小工具內容為公共桶 URL
• 批次工具可小批量轉移現有媒體庫
• 隨時將檔案複製回伺服器
• 支援上傳時 WebP 轉換以節省儲存空間
外掛標籤
開發者團隊
② 後台搜尋「CPW Media Offload for Cloudflare R2」→ 直接安裝(推薦)
原文外掛簡介
CPW Media Offload for Cloudflare R2 copies your WordPress Media Library to a Cloudflare R2 bucket and rewrites the media URLs of your site so visitors download images, videos and documents from Cloudflare instead of your web server.
The Cloudflare R2 free tier includes 10 GB of storage and, when the bucket is served through a custom domain, no egress fees. That makes it a practical way to keep a small hosting plan fast: your server stops sending megabytes of images on every page view and stops filling its disk with thumbnails.
What it does
Uploads new media, and every generated thumbnail size, to your R2 bucket.
Optionally deletes the local copy after a successful upload, so the uploads folder stops growing.
Rewrites attachment URLs, srcset sources, post content, widgets and blocks to the public bucket URL.
Bulk tool that offloads an existing library in small batches, with progress and a stop button.
Copy files back to the server at any time, per file or for the whole library.
Usage bar tuned for the 10 GB free tier, measured directly on the bucket.
Optional WebP conversion on upload, so the smaller file is what uses your storage allowance.
Cloudflare R2 column and per file actions inside the Media Library, including sending a changed file again.
Rebuild tool that restores the offload index by checking the bucket, without uploading anything.
Activity log so upload or permission problems are visible without server access.
Page builder and theme compatibility
Media URLs stored inside page builder data are rewritten as well, so background images, galleries and sliders keep working after an offload:
Elementor and Elementor Pro, including generated CSS files and background images.
Divi, Beaver Builder and WPBakery Page Builder.
Block themes, classic themes, the block editor and any theme that uses the standard WordPress media functions.
Elementor’s CSS cache is cleared automatically after an offload so its generated files point at the new URLs.
Languages
The plugin is fully internationalised. Translations are provided through translate.wordpress.org, where Brazilian Portuguese and any other language can be contributed.
Security
The secret access key is encrypted with your WordPress security keys before it is stored.
Credentials can be defined as constants in wp-config.php and kept out of the database entirely.
Every form is protected with nonces and capability checks.
No third party SDK is bundled: requests are signed with AWS Signature Version 4 and sent through the WordPress HTTP API.
External services
This plugin connects to the Cloudflare R2 storage service, which is the whole purpose of the plugin. It does not connect to any other external service and it sends no analytics or telemetry anywhere.
Cloudflare R2 (S3 compatible API)
When: whenever a file is offloaded, restored, deleted or listed, and when you use the Test connection or Recalculate storage usage buttons.
Where: https://
What is sent: the media files you choose to offload, their file names and content types, your R2 access key id, a request signature generated from your secret access key, and a user agent string containing the plugin version and your site address.
What is received: the storage responses of the service, including object listings and sizes used by the usage bar.
Files served to your visitors are additionally requested from the public bucket URL you configure (an r2.dev address or your own custom domain).
Cloudflare terms of service: https://www.cloudflare.com/terms/
Cloudflare privacy policy: https://www.cloudflare.com/privacypolicy/
