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:
- Install and activate the plugin (see WordPress Plugin for full setup).
- In Settings → CDN, set CDN Domain Name to your Pull Zone hostname.
- Optionally add API Key + Zone ID to purge cache from WordPress.
- 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:
- Install and enable the CDN module.
- In configuration, set the CDN domain to your Pull Zone hostname.
- Limit rewrites to files directories (typically
sites/default/files) and exclude admin paths if needed. - Clear Drupal caches so new URLs propagate.
Magento
Magento 2 has built-in support for static/media base URLs:
- In Admin, go to Stores → Configuration → Web.
- Under Base URLs and Base URLs (Secure), set:
Base URL for Static View Filestohttps://<your-pull-zone-hostname>/static/Base URL for User Media Filestohttps://<your-pull-zone-hostname>/media/
- 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.