Title: Tiny CDN
Author: Viktor Szépe
Published: <strong>2017 年 6 月 26 日</strong>
Last modified: 2018 年 10 月 6 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/tiny-cdn.svg)

# Tiny CDN

 作者：[Viktor Szépe](https://profiles.wordpress.org/szepeviktor/)

[下载](https://downloads.wordpress.org/plugin/tiny-cdn.0.1.6.zip)

 * [详情](https://cn.wordpress.org/plugins/tiny-cdn/#description)
 * [评价](https://cn.wordpress.org/plugins/tiny-cdn/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/tiny-cdn/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/tiny-cdn/#developers)

 [支持](https://wordpress.org/support/plugin/tiny-cdn/)

## 描述

Use an origin pull CDN with very few lines of code.

 * Works with custom /wp-content location
 * Does not support multisite installations

Pull requests are welcome on [GitHub](https://github.com/szepeviktor/tiny-cdn).

This plugins has no user interface.

Set /wp-includes (optional) and /wp-content (optional) CDN URL-s in your wp-config.
php.

    ```
    // No trailing slash!
    define( 'TINY_CDN_INCLUDES_URL', 'https://d2aaaaaaaaaaae.cloudfront.net/wp-includes' );
    define( 'TINY_CDN_CONTENT_URL', 'https://d2aaaaaaaaaaae.cloudfront.net/wp-content' );
    ```

## 安装

This section describes how to install the plugin and get it working.

 1. Upload `tiny-cdn.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  How to configure?

Hook into these filters before `template_redirect` time.

    ```
    // Disable rewriting
    add_filter( 'tiny_cdn_disable', '__return_true' );

    // Don't rewrite for these users
    add_filter( 'tiny_cdn_capability', function () { return 'edit_pages'; } );

    // This is a regular expression to exclude single files
    add_filter( 'tiny_cdn_excludes', function () { return '#\.php#'; } );
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「Tiny CDN」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Viktor Szépe ](https://profiles.wordpress.org/szepeviktor/)

[帮助将「Tiny CDN」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/tiny-cdn)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/tiny-cdn/)，查看[SVN仓库](https://plugins.svn.wordpress.org/tiny-cdn/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/tiny-cdn/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/tiny-cdn/)。

## 更新日志

#### 0.1.6

 * Big typo in handling image thumbnails

#### 0.1.5

 * Add support for Yoast’s `wpseo_xml_sitemap_img_src` filter

#### 0.1.4

 * Filter post thumbnail too

#### 0.1.3

 * First release on WP.org

## 额外信息

 *  版本 **0.1.6**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/tiny-cdn/)
 * 标签
 * [cdn](https://cn.wordpress.org/plugins/tags/cdn/)[content delivery network](https://cn.wordpress.org/plugins/tags/content-delivery-network/)
   [optimization](https://cn.wordpress.org/plugins/tags/optimization/)[performance](https://cn.wordpress.org/plugins/tags/performance/)
 *  [高级视图](https://cn.wordpress.org/plugins/tiny-cdn/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/tiny-cdn/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/tiny-cdn/reviews/)

## 贡献者

 *   [ Viktor Szépe ](https://profiles.wordpress.org/szepeviktor/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/tiny-cdn/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://szepe.net/wp-donate/)