cancel
Showing results for 
Search instead for 
Did you mean: 

Using Azure CDN with Magento 2.4.3

Using Azure CDN with Magento 2.4.3

Our site's media is voluminous well over 14GB which makes deploying the site or creating images very difficult. Therefore, we want to store our media files in an external location in Azure CDN blob storage. We would like to migrate all of the images to the CDN. They will have the same file name preceded with the cdn url. When we change the Base URL for User Media Files the images are not visible. First question is can we manage our images in this manner? Second question... is another command that needs to be run to link the images up with the new base url? Is there any other configuration that needs to be done? Any help would be greatly appreciated. Thanks!

1 REPLY 1

Re: Using Azure CDN with Magento 2.4.3

There is support for using s3 as an external bucket:

 

https://experienceleague.adobe.com/docs/commerce-operations/configuration-guide/storage/remote-stora...

 

Updating those urls is in this documentation:

https://docs.magento.com/user-guide/stores/store-urls.html

 

 

but I would consider this likely to be a red herring. Static images and files should generally have a 1y ttl, so be served from cache repeatedly.

 

Do you have your entire site behind the Azure cdn (dynamic and static) or are you only doing the files? 

Is all your media images?

How large are your largest images?

Without exposing any account information, describe in detail how you have tried to integrate the Azure cdn to your site please