Title: Tiny CDN
Author: Viktor Szépe
Published: <strong>26 Sgiugn 2017</strong>
Last modified: 06 Otover 2018

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Tiny CDN

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

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

 * [Details](https://lmo.wordpress.org/plugins/tiny-cdn/#description)
 * [Reviews](https://lmo.wordpress.org/plugins/tiny-cdn/#reviews)
 *  [Installation](https://lmo.wordpress.org/plugins/tiny-cdn/#installation)
 * [Development](https://lmo.wordpress.org/plugins/tiny-cdn/#developers)

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

## Description

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' );
    ```

## Installation

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

## FAQ

  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#'; } );
    ```

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Tiny CDN” is open source software. The following people have contributed to this
plugin.

Contributors

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

[Translate “Tiny CDN” into your language.](https://translate.wordpress.org/projects/wp-plugins/tiny-cdn)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/tiny-cdn/), check out
the [SVN repository](https://plugins.svn.wordpress.org/tiny-cdn/), or subscribe 
to the [development log](https://plugins.trac.wordpress.org/log/tiny-cdn/) by [RSS](https://plugins.trac.wordpress.org/log/tiny-cdn/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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

## Meta

 *  Version **0.1.6**
 *  Last updated **7 years ago**
 *  Active installations **10+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **4.9.29**
 *  Language
 * [English (US)](https://wordpress.org/plugins/tiny-cdn/)
 * Tags
 * [cdn](https://lmo.wordpress.org/plugins/tags/cdn/)[content delivery network](https://lmo.wordpress.org/plugins/tags/content-delivery-network/)
   [optimization](https://lmo.wordpress.org/plugins/tags/optimization/)[performance](https://lmo.wordpress.org/plugins/tags/performance/)
 *  [Advanced View](https://lmo.wordpress.org/plugins/tiny-cdn/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/tiny-cdn/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/tiny-cdn/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://szepe.net/wp-donate/)