Introduction
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 .
- 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 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
Save.
Under Basic Mode tab:
- Insert the CDN URL into the field.
Click Submit.
Verification
Verify if your Drupal site is on CDN by viewing the HTML source code. Image links shall be replaced with CDN URLs.