SilverStripe Application with Cloudflare images

Silverstripe Version:

Hi I need suggestions from experts.
Thanks in advance.

I am using staticpublishqueue for caching of site pages.
and my site is sooper dooper fast.

Now i am thinking to host my site images on cloudflare with cloudflare images.
is this make in change in speed for my site in future?
should i go for hosting website images on any cdn services?

If you are using Cloudflare as a CDN (Content Delivery Network) for your SilverStripe application, you may need to make some changes to your application’s configuration to ensure that images are displayed properly.

One thing you can try is setting the CLOUDFLARE_IMAGE_SERVICE_URL environment variable to the URL of your Cloudflare account. This will tell SilverStripe to use Cloudflare to serve images for your application.

For example, you can set the CLOUDFLARE_IMAGE_SERVICE_URL variable in your .env file like this:


Alternatively, you can set the CLOUDFLARE_IMAGE_SERVICE_URL variable in your application’s configuration file (e.g. app/_config/config.yml) like this:

      ServiceUrl: ''

Keep in mind that you will also need to make sure that your Cloudflare account is properly configured to serve images for your application. This may involve setting up a custom origin or adding your application’s domain to your Cloudflare account.

Dude, we all love ChatGPT, but this is not helping. Please…

1 Like