這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Free CDN

外掛說明

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

History

  • 1.1.2 Fix bug with non-default port
  • 1.1.1 Minor security fix
  • 1.1.0
  1. Code optimization
  2. Some bug fixes
  3. Add PayPal Donate button 😉

* 1.0.0 Initial version

螢幕擷圖

  • A peek of Options page
  • HTML source code in Debug, listing down the contents that would be served through Coral CDN

安裝方式

As usual:

  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

常見問題集

I just enabled Free CDN. Now my contents take longer than usual to be downloaded!

The speed of downloading static contents is 100% decided by Coral servers. Depending on the server status, sometimes it may take a bit longer for the contents to be downloaded. If the performance is not satisfied, you may want to enable the plugin in certain peak times only.

My JavaScripts got broken! My cookies just don’t work! [Insert error here]

If your javascript doesn’t work anymore, best bet is to uncheck “External JavaScript includes” from “Using CDN on these contents” option section. You can also enable Debug mode to see which files get involved, and try excluding them one by one to find out the problematic one and deal with it for good.

Why doesn’t the plugin parse the external stylesheet and rewrite the background images there too?

There should be no need. If the stylesheet got rewritten and is served through Coral, all relative (most commonly) background images defined inside it will be pulled from Coral servers too.

Everything went wrong! My site is now totally blank/ messed up!

Looks like a plugin conflict. Try disabling your plugins one by one to find out which caused the problem.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Free CDN〉的開發相關工作。

參與者

將〈Free CDN〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄