CDN for WordPress

Serve theme files and uploads from Cloud CDN. Choose which anonymous pages to cache and keep sign-in, administration and personalized responses at the WordPress origin.

Example cache policy
Public, cacheable resource
/wp-content/uploads/hero.webp
Bypass shared cache
/wp-admin/

Cache public pages and WordPress uploads

Route the public hostname through Cloud CDN. Cache eligible anonymous pages and static assets, bypass signed-in sessions and enable Origin Shield to consolidate eligible misses.

Faster public pages

Fresh theme files, scripts and public pages can be served without asking WordPress to generate the same response again.

Media that matches the layout

Resize, crop and convert uploads to WebP or AVIF at delivery time so the media library does not need a separate image pipeline.

Less PHP during traffic spikes

A shared shield cache can consolidate misses for the same object across edge locations, reducing duplicate requests to WordPress.

Configuration

Cloud CDN overview
  1. Connect the WordPress origin

    Create a Cloud CDN distribution that pulls from the existing WordPress host over HTTPS, including the uploads directory and public permalinks.

  2. Validate on an Aptranet hostname

    Confirm theme assets, media and anonymous pages cache correctly before changing production DNS. Keep wp-admin, wp-login and checkout on the origin.

  3. Point the public hostname at the edge

    Map the site domain to the distribution, enable managed certificates and purge after plugin or theme releases.

  4. Tune cache headers and purge

    Cache static files aggressively, set shorter TTLs for HTML if needed, and purge by URL or directory when editorial content changes.

Operational outcomes

  • Fresh public pages can be served without a new WordPress render
  • wp-admin and logged-in requests stay on the origin
  • Uploads can be transformed without a second media stack
  • Campaign spikes hit cache and Origin Shield first

Frequently asked questions

Can I keep wp-admin off the CDN cache?

Yes. Cache public assets and eligible anonymous HTML at the edge. Authenticated admin, login and checkout paths should bypass cache and reach WordPress directly.

Does Cloud CDN work with existing WordPress plugins?

Cloud CDN sits in front of the site hostname. Most caching, SEO and media plugins continue to run at origin. Purge the distribution when those plugins invalidate content.

How do I handle a new plugin or theme release?

Deploy as usual, then purge the changed URLs or directories. Prefetch critical assets if you want them at the edge before the next traffic wave.

Can WooCommerce run on the same distribution?

Yes. Cache the storefront, product images and anonymous catalogue pages. Keep cart, checkout and account requests dynamic so shopper state stays on the origin.