I have a couple wordpress websites, mostly blogs and business websites. Each with hundreds of images.
Currently images are being served by my web server. i.e., they are stored in the `wp-content/uploads` folder
The images are compressed and smaller than 200kb, but still, I want to take this load off the server by hosting the images on a CDN.
I’m hosting my WP sites on a Digital Ocean droplet. DO offers Spaces Object Storage, which basically is an S3 bucket? So I could upload my images there and then copy the links into my page where I needed them – but that’s
1. impractical
2. not a solution for a website whose content is managed by client/someone other than me
I’m guessing a better solution would be some kind of plugin whereby I provide my CDN access credentials, and it automatically uploads any media file uploads to the CDN and rewrites the URLs to serve images from the CDN.
[ad_2]
One of the best WordPress plugins for automatically uploading assets to a Content Delivery Network (CDN) and serving them from a CDN is “WP Rocket.”
WP Rocket is a premium caching plugin that offers various optimization features, including CDN integration. With WP Rocket, you can easily configure your CDN settings to automatically upload your website’s assets (such as images, CSS files, and JavaScript files) to a CDN and serve them from there. This helps improve your website’s performance by reducing latency and speeding up content delivery to users around the world.
Here’s how to set up a CDN with WP Rocket:
1. Install and activate WP Rocket on your WordPress website.
2. Go to the WP Rocket settings page in your WordPress dashboard.
3. Navigate to the “CDN” tab.
4. Enable the “CDN” option.
5. Enter the CDN URL provided by your CDN provider.
6. Save your settings.
Once you’ve configured WP Rocket to use a CDN, it will automatically upload your assets to the CDN and rewrite URLs in your website’s HTML to serve those assets from the CDN. This helps offload server resources and improve page load times for your website visitors.
While WP Rocket is a premium plugin, it offers a range of optimization features beyond CDN integration, including page caching, browser caching, lazy loading, and more, making it a comprehensive solution for improving your website’s performance.
Bunny just released an update to their WP [plugin](https://wordpress.org/plugins/bunnycdn/) which offloads assets to their CDN. There’s also Delicious Brains’ [plugin](https://wordpress.org/plugins/amazon-s3-and-cloudfront/), but their pricing is ridiculous.
Mediacloud.press and use bunny.net
I’m the author of Media Cloud (https://mediacloud.press) which is an offloading plug-in.
Yes you can use DO Spaces. I’m partial to R2 and Bunny though, all of which Media Cloud supports. Once you get it setup it’s all transparent, eg you still upload as you normally would, etc.
Smush