The latest statistical data show that nearly 2.2% of all web sites are created and run on Drupal CMS. Drupal CMS is popular because:
- It is able to provide its users with a high level of security as it gives a high level of control and strong database encryption.
- It is able to scale to thousands of pages.
- It has unlimited design possibilities.
Below you can see instructions how to enable CDN in Drupal using Drupal CDN plugin.
Before you start
Since we will use the Cname address next, please ensure that you have configured the CDN resources on the console . See the following for specific configuration methods: CDN configurate
If you want to integrate a CDN service on https:// pages, you must ensure that SSL is enabled on the console. For specific operations, see: Common problems.
If your website has embedded custom fonts, please confirm that you have enabled the CORS headers in the LightCDN console.
Enable CDN in DRUPAL 8 using DRUPAL CDN PLUGIN
Download the latest version of Drupal CDN.
Extract it into the Drupal module directory, the enabling configuration is shown in the figure below.
Navigate to Site Configuration > CDN Integtration.
Under Settings tab:
- Status: Enabled
- Mode: Basic
- Show statistics for the current page: Disabled
Under Basic Mode tab:
- Insert the CDN URL into the field.
Verify if your Drupal site is on CDN by viewing the HTML source code. Image links shall be replaced with CDN URLs.