內容簡介
在推出一個名為 Free CDN 的 WordPress 外掛後,我收到了另一個要求,要求我創建另一個外掛支持商業 CDN 的主機重寫,這些大名鼎鼎的 CDN 包括 Limelight、Akamai、Velocix、EdgeCast 等。
基本上,這個外掛允許 WordPress 使用者指定兩個重要的變數:一個原始主機(例如 http://www.yoursite.com)和一個“目標主機”(如 http://www.static.yoursite.com)。然後,它會查找來自原始主機的所有靜態內容,並將它們重新寫入目標主機,以便它們從那裡傳送。
特色
支持多個檔案設定,讓不同的內容以不同的方式處理
您可以為每個檔案設定獨自選擇內容類型 - 目前支援 JS、CSS、圖像、內嵌背景圖像和<object>
可以添加其他 URL 作為排除
調試模式可讓您預覽並確保一切正常
與其他外掛正常工作,特別是與 WP Super Cache 一起運行時非常有用
AJAX 的管理部分使其快速且易於調整設置
歷史
1.0.1
新增解安裝處理程序,可卸載時刪除所有設置和數據
在外掛頁面中添加到配置頁面的鏈接
新增 PayPal 捐贈按鈕
修復了一些錯誤並進行了改進
* 1.0.0 初始版本
外掛標籤
開發者團隊
原文外掛簡介
After releasing a WordPress plugin called Free CDN, I got a request to create another that supports rewriting hosts for commerical CDNs – those big names like Limelight, Akamai, Velocix, EdgeCast etc.
Basically, this plugin allows a WordPress user to specify two important variables: an orgin host (says http://www.yoursite.com) and a “destination host” (like http://www.static.yoursite.com). It will then find all the static contents from that orgin host and rewrite them into the destination so that they will be delivered from there.
Features
Multiple profiles are supported, allowing different contents to be treated differently
You can exclusively select the content types for each profile – currently supporting JS, CSS, images, inline background images, and
History
1.0.1
Added uninstall handler to remove all settings and data upon being installed
Added link to Configuration page on plugins page
Added PayPal Donate button
Minor bug fixes and improvements
* 1.0.0 Initial version
