< All Topics
Print

How to Integrate Apto CDN for General Caching Plugin Use

Introduction:

If you’re not using one of the common caching plugins like WP Fastest Cache, WP Rocket, W3 Total Cache, WP Super Cache, or LiteSpeed Cache, you can still integrate Apto CDN with your WordPress site. This guide provides a general approach to help you set up Apto CDN with most caching or custom setups.

Prerequisites:

  • Ensure your Apto CDN account is active and configured with an API key.
  • Confirm you have administrative access to your WordPress dashboard and your caching solution (if applicable).

Step-by-Step Guide:

  1. Identify Your Caching Plugin:

    • Check if your current caching solution has a section for CDN configuration. This step is essential, as many plugins provide custom fields to set up CDNs.
    • If you’re not using a caching plugin, proceed to use manual methods for adding CDN URLs.
  2. Locate the CDN Configuration Section:

    • In your caching plugin’s settings, look for an option that mentions CDN, External URL, Static File Hosting, or similar terminology.
    • If no CDN section is present, you may need to modify your theme’s functions or use a plugin that supports CDN integration.
  3. Add the Apto CDN URL:

    • Enter the following details into the CDN URL field:
      • CDN URL: https://s1.aptocdn.com/{domain}/
      • Replace {domain} with your website’s domain (e.g., https://s1.aptocdn.com/mywebsite.com/).
    • For sites without a CDN field, consider adding a filter in your theme’s functions.php file or using a CDN plugin that supports custom URLs.
  4. Include Static Assets:

    • Ensure your configuration covers all static assets like images, CSS, and JavaScript files. This step maximizes the effectiveness of the CDN by offloading as many static files as possible.
    • Adjust any necessary file type inclusions or exclusions based on your site’s needs.
  5. Save and Apply Changes:

    • Once you’ve added the CDN URL and configured your file types, save the changes within your caching or CDN plugin settings.
  6. Purge/Flush Cache:

    • Clear your site’s cache to ensure all new requests reflect the CDN configuration. This step may be done through your caching plugin’s settings or manually by using an option like Delete Cache in WordPress.
  7. Verify CDN Integration:

    • Open your website in a browser and use Developer Tools (right-click > Inspect > Network tab) to confirm that your static assets are being served from https://s1.aptocdn.com/{domain}/.

Troubleshooting Tips:

  • Assets Not Loading Correctly: Ensure the CDN URL is correct and formatted without errors.
  • Mixed Content Warnings: Verify that the CDN URL uses HTTPS if your site is SSL-secured.
  • Cache Issues: If you see outdated content, clear both your browser cache and server-side cache.

Benefits of Using Apto CDN with Custom Integrations:

  • Improved Load Times: Serving assets from a CDN speeds up your site by reducing latency.
  • Better Performance Globally: Visitors benefit from content being served by the nearest CDN server.
  • Reduced Server Load: Offloading asset delivery reduces stress on your main hosting server.

Conclusion:

Integrating Apto CDN with custom caching setups or lesser-known plugins can significantly enhance your site’s performance. Follow these steps to ensure your static content is served efficiently, providing your users with a faster, more responsive experience.

For any assistance or questions, don’t hesitate to reach out to our support team.

Table of Contents