CDN for WooCommerce

Cache product photography and public catalogue pages. Give carts, customer accounts and checkout their own cache bypass rules.

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

Separate product browsing from checkout

Cache the catalogue, theme and media at the edge. Leave cart, checkout, account and admin dynamic. Origin Shield reduces duplicate product-image and CSS misses during sales.

Catalogue pages that keep up with ads

Cache public category pages, theme files and product images so repeat browsing generates fewer requests to the store.

Product imagery without extra derivatives

Convert and resize gallery images at the edge. Keep a single source file in the WordPress media library.

Checkout stays on WooCommerce

Cart, coupons, payments and account pages bypass cache. The edge accelerates what is safe to reuse, not shopper state.

Configuration

Cloud CDN overview
  1. Put the storefront behind Cloud CDN

    Pull the WooCommerce origin over HTTPS and cache theme, plugin and uploads paths first.

  2. Exclude cart and checkout

    Bypass cache for cart, checkout, my-account and admin. Validate with a test order on an Aptranet hostname.

  3. Optimise product media

    Use image transformation for listing and pdp sizes instead of generating every derivative at upload time.

  4. Prepare for campaign traffic

    Prefetch hero SKUs, set purge rules for price or stock changes, and keep Origin Shield in the miss path.

Operational outcomes

  • Product imagery and catalogue assets are cached globally
  • Cart and checkout remain origin-dynamic
  • Sale-day misses are consolidated through Origin Shield
  • Theme and plugin releases can be purged by directory

Frequently asked questions

Will cached pages show the wrong cart count?

Not if cart, checkout and account paths bypass cache. Anonymous catalogue pages should not include shopper-specific HTML.

Can I cache product pages that change stock often?

Yes, with a TTL that matches how fast availability must update, plus purge on stock or price changes for the affected URLs.

Does this replace a WooCommerce object cache?

No. Object cache still helps PHP. Cloud CDN reduces how often those PHP workers run for public storefront traffic.

Is HTTPS required?

Yes. Cloud CDN delivers over TLS 1.3, with managed certificates or a custom certificate on the shop hostname.