CDN for Magento

Serve Magento static content and product images from the edge. Keep customer-specific prices, cart updates and checkout with the application.

Example cache policy
Public, cacheable resource
/media/catalog/product/bag.webp
Bypass shared cache
/checkout/cart/

Offload catalogue media and versioned assets

Serve pub/static, media and eligible full-page cache output from Cloud CDN. Keep admin, customer accounts and checkout on the Magento origin. Origin Shield consolidates media misses.

Static content at the edge

Versioned files under pub/static can stay in cache across subsequent requests, reducing work for the Magento origin.

Catalogue media without origin thrash

Product and category images are cached and optionally transformed at the edge instead of resizing on the Magento host.

FPC and edge cache together

Eligible anonymous pages can be cached at the CDN while Magento full-page cache still protects the origin for other routes.

Configuration

Cloud CDN overview
  1. Point static and media base URLs at Cloud CDN

    Configure Magento static and media URLs to the distribution after the origin pull is verified.

  2. Decide which HTML can be cached

    Anonymous category and CMS pages can often be cached. Bypass customer, checkout and admin routes.

  3. Align purge with deploys

    Purge static versioned paths on deploy and purge media or HTML when catalogue content changes.

  4. Enable Origin Shield

    Consolidate cache misses so Magento PHP-FPM and media storage are not hit by every edge independently.

Operational outcomes

  • Static and media URLs are served from the edge
  • Admin and checkout remain on Magento
  • Deploys invalidate versioned static content cleanly
  • Origin Shield reduces duplicate media fetches

Frequently asked questions

Does this replace Magento full-page cache?

No. Use both. Magento FPC reduces origin work; Cloud CDN keeps that result close to shoppers and off the Magento cluster.

How should static content signing work?

Keep Magento static versioning. Cache those versioned URLs at the edge and purge or let TTLs expire when the version changes.

Can I use this with Adobe Commerce Cloud?

Yes, when you control the public hostname and origin pull. Review the current Adobe Commerce networking model before cutover.

What about Varnish already in the stack?

Cloud CDN sits in front. Varnish can remain an origin-side cache. Origin Shield still helps when many edges miss at once.