Skip to content

How to use Pull Zones

Swap your asset URLs to a Pull Zone hostname to serve media, JS, and CSS through CDN.gd. Use the guides below for manual HTML changes or common CMSs.

Service overview

Manual HTML

Point image, script, and stylesheet tags at your Pull Zone hostname (issued name.cdn.gd or a custom CNAME you added to the zone). Example swap:

html
<!-- before -->
<img src="https://example.com/assets/hero.jpg" alt="Hero">

<!-- after -->
<img src="https://media.example.com/assets/hero.jpg" alt="Hero">

Use the same pattern for JS and CSS:

html
<script src="https://media.example.com/js/app.js"></script>
<link rel="stylesheet" href="https://media.example.com/css/site.css">

Tips:

  • Keep origins consistent: point only asset URLs (images, fonts, JS, CSS) at the CDN hostname.
  • If you cache-bust with query strings, ensure Pull Zone caching is set to respect or ignore query strings as needed.

WordPress

Use the official plugin for hands-free rewrites:

  1. Install and activate the plugin (see WordPress Plugin for full setup).
  2. In Settings → CDN, set CDN Domain Name to your Pull Zone hostname.
  3. Optionally add API Key + Zone ID to purge cache from WordPress.
  4. Enable “Disable CDN for admin user” while testing, then toggle it off when ready.

The plugin rewrites script/style/attachment URLs and supports manual purge. No theme edits needed.

Drupal

Drupal supports CDN rewrites via the popular CDN module:

  1. Install and enable the CDN module.
  2. In configuration, set the CDN domain to your Pull Zone hostname.
  3. Limit rewrites to files directories (typically sites/default/files) and exclude admin paths if needed.
  4. Clear Drupal caches so new URLs propagate.

Magento

Magento 2 has built-in support for static/media base URLs:

  1. In Admin, go to Stores → Configuration → Web.
  2. Under Base URLs and Base URLs (Secure), set:
    • Base URL for Static View Files to https://<your-pull-zone-hostname>/static/
    • Base URL for User Media Files to https://<your-pull-zone-hostname>/media/
  3. Save, then run cache flush (bin/magento cache:flush) and deploy static content if needed.

Notes:

  • Keep the main site URL on your primary domain; only static/media URLs should use the CDN host.
  • If you use signed URLs or IP restrictions, apply them on the Pull Zone and verify the CMS supports the flow.