Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have read an article about CND or " Content Delivery Network " which this is really telling myself that if I host a wordpress self-hosting and having a load of traffic I should at least have CDN which will help me improve my loading speed or performance of my site.

Come to my question, should CDN be hosted in a different host or if it is in different directory will still make my site load faster than what the default wp-content is?

I'm currently hosting my wordpress on a MAC OS X Server with 16GB of ram everything running fine except some people saying that it does take a bit of time for completion of site downloaded. [upto 5 seconds]

I'm having issue with w3 cache really can't use it because it makes my site messed in a way that it will only show one post randomly but once I deactivate it then everything worked fine.

please if you can share your opinion about this.

Thank

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

CDNs work best when the objects - images, scripts - are hosted on a completely different server. Hosting a CDN on the same box that holds your web site defeats the purpose, as the processor, RAM and bandwidth are already being used for the site, and even if the CDN is on a subdomain, your server is still being used.

Try WP Super Cache http://wordpress.org/extend/plugins/wp-super-cache/ with a Amazon Cloudfront CDN http://aws.amazon.com/cloudfront/ (You don't have to set up an S3 bucket; just use Cloudfront.)

Super Cache is less .htaccess intensive and more foolproof than W3TC. Follow WP Super Cache's instructions to add an .htaccess file to the cache folder for full browser caching.

Use http://gtmetrix.com/ to test site speed and caching.

share|improve this answer
    
Thanks I will try your suggested answer :) –  Ali Mar 28 '12 at 1:31
    
If you're serving it off a cookieless subdomain, there's also an improvement. Just worth mentioning. –  kaiser Nov 21 '12 at 21:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.