Managing Asset Domains with Easy IO CDN

By default, Easy IO will rewrite all the URLs on your site, but there are some cases where it can't. At least, not "out of the box". For example, if you're storing your images on Amazon S3 or Google Cloud Storage, Easy IO will rewrite everything that is pointing at your bucket. But your CSS, JS, and other "assets" aren't (normally) stored in your S3 bucket.

Asset Domains for Easy IO allows you to add your local/home domain for Easy IO delivery, or even third-party assets, like Instagram or Facebook images. So how does it work?

Enable Asset Domains

First, you'll need to go on over to your site management page, and look for the settings icon for your site. Then, you can add any additional domains you need to the Asset Domains setting, and Easy IO will take care of it from there.

Configuration Sync

Our plugin will automatically sync the asset domains configuration the next time your site checks in with our servers. However, if you want to force the plugin to update immediately, it's pretty simple. On the plugin settings, disable/deactivate the Easy IO function (not the whole plugin), and then re-enable it. Clear any caches on your site, especially object/database caches, and you should see the changes immediately!

Roadblocks

There are a few things that can't be delivered via Asset Domains:

First, the URLs for any assets delivered via JS can't be modified by Easy IO. For example, we mentioned Instagram images: if those URLs are directly within the page HTML, then Easy IO can rewrite the URLs automatically. However, if the content/URLs are fetched via an async JS request, then there's not much we can do about it.

Files like videos, audio clips, and PDFs also cannot be delivered via an Asset Domain. They'll work just fine on your primary domain. However, those file types bypass our intermediary servers and go straight to the "origin", so there's no way for us to route those through Easy IO to a different or third-party domain.

If you want to manually modify URLS, like those within JS or CSS, the URL syntax needs to look like this:

https://example.exactdn.com/easyio-assets/third-party-domain.example.com/wp-content/themes/my-theme/style.css

Where example.exactdn.com is your Easy IO CDN domain, and third-party-domain.example.com is the Asset Domain.

Still need help? Contact Us Contact Us