This article will walk you through the most simple Static Assets Integration. To get the most out of StackPath (WAF and DDoS protection) you will need to use a Full Site Integration
Before you begin setting up your StackPath CDN services with XenForno, we highly recommend you test the performance of your site using Google Page Speed or Pingdom Tools. You can test your site now and after setting up the plugin for a before and after performance comparison.
This tutorial assumes you've already gone through the steps to create a StackPath CDN Site.
Connect to your ftp account.
Navigate to folder library
Edit file config.php and add below two lines:
$config ['externalDataUrl'] = 'http://something.stackpathcdn.com/data';
Login to your XenForo admin area.
Navigate to Style -> General -> Settings.
Under field Path to images replace existing content (/styles/default) with following:
Click on Update Style Properties to apply your settings.
Test if Stackpath CDN is integrated correctly
Checking if CDN enabled is really simple.
- Purge the browser cache or use a Private or Incognito window.
- Open the website
- Right click anywhere on the page
- View source code
- Check the source code for the CDN URL
To ensure you implemented the StackPath CDN correctly, you can view the source code of any page to confirm that the CDN domain is being used for static assets instead of your origin domain. You can also use tools like pingdom, gtmetrix, webpagetest that can give you more detailed reports on your CDN implementation status. If you have any questions or issues, please contact our Support team via live chat.