Help Center
How to integrate with WP Rocket
Introduction:
Integrating Apto CDN with the WP Rocket caching plugin can greatly enhance your site’s load speed and overall performance. WP Rocket is a popular caching plugin that simplifies the process of optimizing your WordPress site, and by adding a CDN, you ensure your static assets are served quickly to users around the world.
Prerequisites:
- Ensure that the WP Rocket plugin is installed and activated on your WordPress site.
- Your Apto CDN account should be active, with your API key and configuration set up.
Step-by-Step Guide:
- Access WP Rocket Settings:
- Log in to your WordPress admin dashboard.
- Navigate to Settings > WP Rocket in the left sidebar.
- Enable CDN Integration:
- Click on the CDN tab in WP Rocket’s settings panel.
- Toggle the Enable Content Delivery Network option to ON.
- Add the CDN URL:
- In the CDN CNAME(s) field, input your Apto CDN URL:
- CDN URL:
https://s1.aptocdn.com/{domain}/
- Replace
{domain}
with your actual website domain (e.g.,https://s1.aptocdn.com/mywebsite.com/
).
- CDN URL:
- Select the type of files you want to serve through the CDN (e.g., images, CSS, JavaScript). For comprehensive coverage, ensure “All files” is selected.
- In the CDN CNAME(s) field, input your Apto CDN URL:
- Save Changes:
- After entering the CNAME(s), click Save Changes to apply the configuration.
- Clear the Cache:
- For the new settings to take effect, clear your site’s cache by clicking Clear cache in WP Rocket’s interface.
- This action regenerates cached files and ensures that your updated configuration with Apto CDN is active.
- Verify CDN Activation:
- Check the frontend of your website and inspect your page using Developer Tools (right-click > Inspect > Network tab).
- Ensure your static assets (e.g., images, stylesheets, JavaScript files) are served from
https://s1.aptocdn.com/{domain}/
.
Troubleshooting Tips:
- CDN Not Working as Expected: Double-check your CNAME settings for any errors or typos. Ensure your domain is correctly formatted and matches your site’s URL structure.
- File Exclusion Issues: If some files are not being served from the CDN, confirm that those file types are included in the File Types to Include section in WP Rocket’s CDN settings.