Separate subdomains with cloudflare and bigcommerce

One common technique that I have used in the past is using separate usbdomains for hosting larger static files. I recently ended up diong this with BigCommerce and Cloudflare to avoid pulling large content thru bigcommerce.

I did this recently with our Kids Party Bags site: PartyBagKids. This was done by creating a subdomain of partybagkids.co.uk and then using “rules” in cloudflare mapping certain elements to the subdomain via a 301. This means the page requests a resource but it is 301′ed to the image domain and is delivered locally. As I am running out of the UK this is worth doing for large assets. This also avoids pulling unrelated assets through cloudflare and lowers the TCO.