Tsohost Knowledge Base

Speed up serving static content

Modified Sunday 16th August, 2015 at 01:18

Was this helpful?

To speed up the loading of your static content on your site (such as images, JavaScript, CSS files, etc) it is possible to tell your site to load them from the cloud's high-speed Nginx cluster. To do so, simply log into your control panel and do the following:

1) In Website Settings, go to Domain Aliases and then add static.yourdomain.com. (replace yourdomain.com with your actual domain)

2) Once this is added, go to Custom DNS, and edit the root A record for static.yourdomain.com to point to 91.208.99.251. You can also set the TTL of this record down to 600 seconds if you wish (it means that it won't be cached for very long should the IP ever change).

3) After you have done this, you will need to log into your site and set it to use this domain for your static content. In WordPress for example, under Settings > Media, you would set the full URL path to http://static.yourdomain.com/wp-content/uploads nb: This needs to be the url to the actual uploads folder for wordpress. In Magento you would set the Unsecure Base URL for media. If you're not sure how to do this using your specific software, just get in touch for assistance.


w3CDNMagentoCacheJavascriptOptimise

Still can't find what you're looking for?

Not a problem - our 24/7 customer support team are super friendly and here to help answer all your questions. There's no need to wait, click below to start a Live Chat.

Start Live Chat

Still can't find what you're looking for?

Not a problem - our 24/7 customer support team are super friendly and here to help answer all your questions. Don't delay, click below to find out how you can get in touch.

Get in Touch