WP Rocket is a caching and performance optimization plugin for WordPress that improves page load time. Installation and configuration can be completed in less than 3 minutes.
Before you begin, 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 and the WP Rocket plugin is purchased.
Log in to the WordPress admin panel:
On the left-hand menu, hover over Plugins and select Add New:
At the top of the page, click Upload Plugin.
Click Choose File. Then grab the WP Rocket plugin file from the folder you saved it to. After selecting it click Install Now.
Click Activate Plugin.
In the top menu click the WP Rocket link.
Click the CDN tab.
- Enter your CDN URL in the text field called CDN CNAME(s).
Save the changes.
Verify the source code of any page to confirm that the CDN domain is being used for static assets instead of your origin domain. Your CDN URL should precede directories designated for static content is located.
Test speed and SEO after Stackpath CDN is enabled
Compare the before and after tests and note that it can take one to seven days for your site to reflect the performance improvements of a CDN. Both of these test sites also will give you SEO recommendations that you can follow.