Introduction
Magento is an open-source eCommerce platform that is extremely easy to use. Nearly 16% of the top eCommerce web resources operate exactly on this CMS. Online merchants choose Magento because:
- It is easy to install and modify according to your purposes and tastes.
- It is an open-source technology that helps to find flexible eCommerce solutions.
- It is able to save your money.
- It offers nearly 50 payment gateways.
If you want to speed up your Magento online store, try to use a CDN service. Find the detailed instructions how to integrate CDN with Magento below.
Before you start
- Since we will use the Cname address next, please ensure that you have configured the CDN resources on the console .
- If you want to integrate a CDN service on https:// pages, you must ensure that SSL is enabled on the console.
- If your website has embedded custom fonts, please confirm that you have enabled the CORS headers in the LightCDN console.
Integration approach
Enable CDN in Magento using CDN for Magento PLUGIN
- Login to the Magento Admin Panel.
- Navigate to Magento Admin -> Configuration -> Web -> Unsecure.
- Update the following with the CDN URL(eg, cdn.magento.com):
- Base Media URL: cdn.yourmagento.com/media/
- Base Javascript URL: cdn.yourmagento.com/js/
- Click Save to update the changes.
- Then Navigate to Magento Admin -> Configuration -> Current Configuration Scope: Main Website -> Web -> Unsecure -> Base Skin URL.
- Uncheck Use Default for the Base Skin URL.
- Update Base Skin URL:
- Base Skin URL: cdn.yourmagento.com/skin/
- Click Save to update the changes.
Verification
Verify if your Magento is on CDN by viewing the HTML source code. Image links shall be replaced with CDN URLs.