Spawning 32,678 processes took an average of 3.06 s/process of CPU time and 4.01 s/process of wall-clock time LOL.

Follow me

Free CDN

Note
Looking for a similar plugin but for commercial CDNs like Akamai, Limelight, EdgeCast, Amazon and so on? CDN Rewrites to the rescue!

For busy websites, using a CDN (Content Delivery Network) to transfer static content such as images, javascripts, stylesheets, Flash etc. is highly recommended (as listed in Yahoo!’s Best Practices for Speeding Up Your Web Site) as it reduces server load and bandwidth thus improves stability and availability.

There is a catch – Commerical CDN’s like Akamai and Limelight are not cheap at all. Good news, we have an exception however – the free, P2P-based CoralCDN allows us to take full advantage of a powereful CDN without spending a dime. How to use it? Well, basically, just append `.nyud.net` to the hostname of any URL, and that URL will be handled by Coral – simple.

This plugin takes that simplicity one step further (or closer?) by rewriting your static files’ URL’s (JavaScripts, CSS, images etc.) so that they are served from Coral servers instead of your own. You don’t have to touch anything! Just enable it, and boom! your static contents are handled with care by Coral’s powerful server clusters.

If you are paying bandwidth fee, this plugin hopefully helps with your bills. Even if you don’t, enabling it may save your site in peak times.

Features

  • Just enable the plugin and call it done – no extra steps required!
  • You can exclusively select the content types to be served through CoralCDN – currently supporting JS, CSS, images, inline background images, and <object>’s
  • Additional URL’s can be added as includes or excludes
  • Debug mode gives you a good preview to make sure nothing goes wrong
  • Works normally with other plugins. Especially useful if run along with WP Super Cache
  • AJAX’ed admin section makes it quick and easy to adjust the settings

Installation

  1. Download the plugin
  2. Extract into a folder
  3. Upload the entire to `wp-content/plugins/` directory of your WordPress installation
  4. Enable it via Plugins panel
  5. It should now work out of the box. If you want to tweak it a bit, head to Settings->Free CDN

FAQ and History

Head to the plugin’s Codex page.

Demo and Download

I’ve brought the demo site down after switching to WPWebHost :D Sorry for that.

Download


  • Hi !
    Great plugin. I am testing it for my blog right now (click on my name).
    After activating the plugin, my blog  returns just a blank white page, nothing more. What might be the issue ?
     
    Running latest WP and PHP 5+

  • Hi, and sorry that my plugin didn’t work for you. It’s like 99% that there are some conflicts between Free CDN and your existing plugins. If you have some free time, could you try disable them one by one to see which doesn’t like my plugin? ;)
    Thanks in adv!

  • set it up on my blog to test for future use. WP 2.8.4 and it worked out of box with no issues. nice plugin. thanks

  • Hey dev
    i activated the plugin ,but i don’t see any changes but in the source i can see the debug mode it says TOTAL: 11 URL’s to be rewritten

    so do i need to wait for long time ? i am waiting for past 2 day's
    
    note:i don't have any plugin activated except free cdn 
    

     

  • Roger, you don’t need to wait. The URLs should be rewritten exactly as what specified in debug mode. Could you uncheck debug mode and try again? Also it would help if you can tell me your website address.

  • Http://crunch.Mooo.Com if you need login let me know it’s demo blog

  • Roger, from what I see you still have debug mode active. Please deactivate it?

  • Ok i de-actived th

  • I see it works now?

  • Still images load fr

  • Thank you for the plugin

  • Hi! First of all, thank you for the plugin. :)
    Now one tip: if someone is having problem with the plugin and the theme try to put the following URL in the exclude list:
    http://your.domain/class
    I discovered that, because when I’ve enabled the plugin with all options turned off, and even this way it was breaking my layout. So I’ve enabled debug mode and saw this:
    So I put the fake URL http://jeguiando.com/class and my CSS come back to work again.

    class
    will be written into
    http://jeguiando.com.nyud.net/class
    

    So I put the fake URL http://jeguiando.com/class and my CSS come back to work again. :)
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     

  • the plugin does not work on my blog. It broke my layout, no images were displayed and CSS styles were not applied. In debug mode it shows 31 URLs to be rewritten. Any suggestions? My URL is http://www.zparacha.com

  • Hi Zaheer,
    I would assume it’s a CSS problem. Suggestion: exclude your css and/or javascript file one by one basing on the debug data, to see which is the cause.

  • I’m having the same problem as Zaheer, but when I click debug mode everything works again. What does debug mode do, and how do I see the debug data?
    Thanks,
    Stephen

  • @Stephen: The debug more doesn’t do anything but listing down the to-be-rewritten links. You can check it by viewing the HTML source code of you page.

  • OK, thanks for such a quick response! So, with debug checked, the Free CDN is still running? Is it funny that with debug unchecked my sites’s CSS is broken, but when its checked that everything looks fine?

  • No, quick debug checked the Free CDN is not active, that’s why everything looks fine. Please follow what I suggested Zaheer.

  • This plugin is great and working fine in my blog .  But I am facing little problem. In my blog in some places I use ajax to get data.  Like in single.php file after the post details I have an option to get previous five post. I am showing this using ajax after clicking a link like “show me previous five post”. Problem is this plugin is changing param in my js function attached with anchor tag.
     
    After enabling debug mode I got this

    prevfive','http://blog.manchumahara.com/wp-content/themes/phpbbpress2009/ajax/ajax.php','2009-11-16 05:01:52','541ac43e40
    will be written into
    http://blog.manchumahara.com.nyud.net/2009/11/16/prevfive','http:/blog.manchumahara.com/wp-content/themes/phpbbpress2009/ajax/ajax.php','2009-11-16 05:01:52','541ac43e40
    here
    'prevfive','http://blog.manchumahara.com/wp-content/themes/phpbbpress2009/ajax/ajax.php','2009-11-16 05:01:52','541ac43e40' these are parameter of a js function attached in anchor tag.
    What the plugin is suggested here is wrong.
    any solution dear. again thank you very much for this great plugin.
    Currenlty my blog has this plugin debug mode. I think problem is it's changing code for onClick function for any tag which is very important to send ajax req normally.
    
    sabuj aka manchumahara
    
  • plugin not compatible

    cSprites
    good works buddy, I have installed in both of my blogs

  • Greetings, and Happy Holidays,
    I installed your plugin, activated it and got some problem. Even tho I know pretty much nothing in coding, I think I figured what was the problem.
    I’m going to run a site on port 8080 like this:
    http://www.example.com:8080/site/
    When I tried to access the site, got a blank page but I managed to get a few things out of it. I think your plugin doesn’t parse the “:” in the original URL right.
    Here’s an sigle line of what I get:
    <pre><http://www.example.com8080.nyud.net/link rel=”stylesheet” href=”http://www.example.com.nyud.net:8080/site/wp-content/themes/my_theme/style.css” type=”text/css” media=”screen”></pre>
    And here’s what I thing I should have had considering the CoralCDN site:
    <pre><http://www.example.com.8080.nyud.net/link rel=”stylesheet” href=”http://www.example.com.8080.nyud.net:8080/site/wp-content/themes/my_theme/style.css” type=”text/css” media=”screen”></pre>
    Just pointing out this issue so you might take a look at it and possibly try to fix this (if anything need to be fixed) in a future update.
    Happy Holidays to you and your family…
    KB

  • Thanks for the info KarmaBogus, I will check it right away.

  • Hi again Karma,

    I’ve checked the code, it seems there’s nothing wrong with it. The URL’s are being parsed correctly, ie. http://www.google.com:8080/style.css will be parsed into http://www.google.com.nyud.net:8080/style.css, and NOT http://www.google.com.8080.nyud.net:8080 as you suggested. Anyway, even if the URL’s were not parsed correctly, there shouldn’t be a blank page. It sounds like a plugin incompatibility to me.

    Thanks for the wishes. Same go to you!

  • Thanks a lot for such a fast reply! LIke I said, I’m far from a coder but that seems contradictory from what I read here on the official CoralCDN wiki site:
    http://wiki.coralcdn.org/wiki.php?n=Main.FAQ#otherports
    This shows why I think there is something wrong. But then again, I might be wrong cause of my poor coding knowledge and relatively poor english too.
    In any ways, there’s no rush. Take your time to have a nice Christmas Eve, and take a look at this when you have time.
    I still think this is a great plugin anyway and might use it at some other sites.
    Regards,
    KB

  • In this case, you are way right :D Sorry for my last reply. Will fix it in the next version.

  • LOL! No need to be sorry. I’m glad I helped you to probably improve your really useful and great plugin. ;)
     
    KB

  • I added links to this plugin to CoralCDN’s site.

  • Thanks Mike!

You can follow any responses to this entry through the RSS 2.0 feed.

Trackbacks / Pingbacks