How to Configure Content Delivery Network (CDN) in Magento 2

Configure CDN Magento 2 - Content Delivery Network (CDN) is one of the advanced solutions when your site performance is too low to load and too long to wait while the web loading time is an important factor which affect your user experience, as well as SEO. Unlike full-page cache, Content Delivery Network (CDN) is not fully integrated into Magento 2 Store, so you need to choose and configure a CDN for own.
Therefore, in this post, I am going to cover installing a CDN on Magento to help you achieve an amazing speed on the site.
Related topics
- How to Enable Template Path Hints
- How to Configure DHL Carrier
- Magento 2 Out of Stock Notification Settings: No extension installed required
- How to Configure Cash On Delivery Payment Method
To configure a content delivery network in Magento 2
- On the Admin panel, click Stores. In the
Settings
section, selectConfiguration
. - Select
Web
underGeneral
in the panel on the left - Open the
Base URLs
section, and continue with following:
- In the
Base URL for Static View Files
field, enter the URL of the location on the CDN where static view files are stored - In the
Base URL for User Media Files
field, enter the URL of the JavaScript files on the CDN - Open the Base URLs (Secure) section, and continue with following:
- In the
Secure Base URL for Static View Files
field, enter the URL of the location on the CDN where static view files are stored. - In the
Secure Base URL for User Media Files
field, enter the URL of the JavaScript files on the CDN.
- In the
- When complete, click
Save Config
.
Note: All these fields can be left blank, or they can start with the placeholder: {{unsecure_base_ url}}
Recommendation
We recommend to use Cloud CDN:
Abandoned cart email.

Recent Tutorials

Magento 2 Admin Panel
6 Steps to Creating an Extension Package File in Magento
How to build landing pages in Magento store?
Comments for Configure Content Delivery Network (CDN)
Explore Our Products:
People also searched for
- Configure CDN Magento 2
- magento 2 configure cdn
- setup cdn magento 2
- magento 2 configure cdn
- magento 2 cdn
- cdn magento 2
- magento2 cdn
- magento cdn
- magento 2 cdn setup
- magento 2 cdn extension
- cdn for magento 2
- magento 2 cdn configuration
- cdn magento
- magento cdn setup
- cdn for magento
- magento cdn integration
- cdn base url
- best cdn for magento 2
- best cdn for magento
- how to configure cdn
- how to setup a content delivery network
- configure cdn magento 2
- how to set up a cdn
- how to setup a cdn network
- 2.2.x, 2.3.x, 2.4.x
Stay in the know
Get special offers on the latest news from Mageplaza.
Earn $10 in reward now!