Title: CDN not working
Last modified: August 20, 2016

---

# CDN not working

 *  [raphaelsuzuki](https://wordpress.org/support/users/raphaa00/)
 * (@raphaa00)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cdn-not-working/)
 * Hi.
 * The CDN rewrite feature seems to be not working.
 * Is it Apache based?
 * I’m asking because I’m using Nginx.
 * [http://wordpress.org/extend/plugins/autoptimize/](http://wordpress.org/extend/plugins/autoptimize/)

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/cdn-not-working/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cdn-not-working/page/2/?output_format=md)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604084)
 * Don’t think the rewrite is Apache-specific, but done entirely in PHP. But I’m
   not familiar with the CDN-rewrite code yet to be honest (I took over maintenance
   from the original developer a couple of months ago), I’ll dive in to see how 
   it works.
 * Some questions;
    - Did you activate JS, CSS or image CDN?
    - Do you use any kind of caching (e.g. WP Super Cache plugin) and if so did 
      you clean the cache?
    - Did you just see your normal URL’s in the resulting HTML after activating 
      the CDN-config? Or were the URL’s broken? Or were some OK and others not?
 *  Thread Starter [raphaelsuzuki](https://wordpress.org/support/users/raphaa00/)
 * (@raphaa00)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604129)
 * Hi, Futta, and thanks for the fast response.
 * > Did you activate JS, CSS or image CDN?
 * I’ve done tests with them all enabled and with each individually enabled. None
   of them seems to work.
 * > Do you use any kind of caching (e.g. WP Super Cache plugin) and if so did you
   > clean the cache?
 * I don’t use any type of WP-specific cache, but I do use APC on my server, with“
   apc.stat” directive set as “1”.
 * > Did you just see your normal URL’s in the resulting HTML after activating the
   > CDN-config? Or were the URL’s broken? Or were some OK and others not?
 * Nothing’s changed, actually.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604139)
 * OK, did [a quick test on my test-blog](http://futtta.be/wordpress/blog/2012/09/07/need-more-random-posts/)
   and Autoptimize’s CDN code seems to work for me, so it’s probably something specific
   to your configuration. Can you list of all of Autoptimize’s settings here (or
   in a mail to futtta-at-gmail-dot-com)?
 *  Thread Starter [raphaelsuzuki](https://wordpress.org/support/users/raphaa00/)
 * (@raphaa00)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604143)
 * My configuration is as follow:
 * – HTML and CSS minify;
    – All CDN options: js.mysite.com, css.mysite.com, media.
   mysite.com; – Disabled file compress (doing it with Nginx).
 * I’ve made this tests with two different sites. In one of them I disabled all 
   other plugins, without success.
 * Maybe this is something to do with my server?
 * – PHP 5.4.6 + APC
    – MariaDB 5.5.29 – Nginx 1.2.1 + PHP-FPM
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604178)
 * The server-stack should not have anything to do with the problem, as the replacement
   of URL’s with CDN URL’s is done with pretty straightforward PHP preg_replace’s.
 * But I’m working on some issues with the latest release for now, but as soon as
   that calms down I’ll look into this problem again.
 * I must admit that I consider CDN as being less part of the core functionality
   of (or less vital to) Autoptimize. I use the CDN-options in WP Super Cache (which
   is the ideal companion to Autoptimize) to offload CSS/JS/images to my CDN.
 *  [John Conner](https://wordpress.org/support/users/johnconner/)
 * (@johnconner)
 * [13 years ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604208)
 * Hi futta, the CDN option is somehow weird, it seems working at the very first
   moment of installation, after a clean catche it stops working at all 🙁
 *  Thread Starter [raphaelsuzuki](https://wordpress.org/support/users/raphaa00/)
 * (@raphaa00)
 * [13 years ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604209)
 * > I must admit that I consider CDN as being less part of the core functionality
   > of (or less vital to) Autoptimize. I use the CDN-options in WP Super Cache (
   > which is the ideal companion to Autoptimize) to offload CSS/JS/images to my
   > CDN.
 * I really like the way CDN is implemented in Autoptimize, with independent settings
   for JS, CSS and images, although it does not support parallelization like Super
   Cache’s CDN.
 * I also understand that CDN is a complementary feature, but while I don’t always
   use Super Cache, Autoptimize is a must-have in any WP installation I create.
 *  [John Conner](https://wordpress.org/support/users/johnconner/)
 * (@johnconner)
 * [13 years ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604210)
 * > while I don’t always use Super Cache, Autoptimize is a must-have in any WP 
   > installation I create.
 * Well, Autoptime features are just working with no special config or server annoy.
   The thing is **there should be a PHP way** to keep its CDN **always working**,
   I found out that it could be stopped with other WP settings or plugins. Any help
   is appreciated 🙂
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604211)
 * > I found out that it could be stopped with other WP settings or plugins.
 * That is interesting, can you provide some more info on that?
 *  [John Conner](https://wordpress.org/support/users/johnconner/)
 * (@johnconner)
 * [13 years ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604212)
 * > can you provide some more info on that?
 * I can’t surely claim that these situations would happen generally:
    1- updating
   wp from 3.3 to 3.5.1 or bp from 1.6 to 1.7 2- installing wp better security intrusion
   module 3- changing permission of autoptimize folders from 755 to any (e.g.705)
   4- activating “deflate” with .htaccess every one of these cases happened on a
   different site, they’re assumed as independent variables (no other changes), 
   and again I can’t admit these are just conflicting with autoptimize CDN. I like
   the plugin, so I continue installing on my wp sites even if CDN goes out of work.
 *  [John Conner](https://wordpress.org/support/users/johnconner/)
 * (@johnconner)
 * [13 years ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604213)
 * Just found out with reseting the plugin installation in sql tables, the CDN works
   again, both js $ css; tnx everyone 🙂
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604214)
 * Hurray!
 * But for my understanding; “resetting the plugin installation” = removing autoptimize
   options to go back to default?
 *  [blau](https://wordpress.org/support/users/blau/)
 * (@blau)
 * [13 years ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604216)
 * Slightly offtopic: I use Autoptimize together with WP Super cache and what I 
   like is the ability to offload css+js to a CDN with Autoptimize. I may also add,
   it works failry well for me.
 *  [cp_user](https://wordpress.org/support/users/cp_user/)
 * (@cp_user)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604229)
 * Hi,
 * Would you care to elaborate more on the:
 * Just found out with reseting the plugin installation in sql tables, the CDN works
   again, both js $ css; tnx everyone 🙂
 * Do you mean re-installing or what?
 * Tnx
 *  [cp_user](https://wordpress.org/support/users/cp_user/)
 * (@cp_user)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/cdn-not-working/#post-3604230)
 * The Autoptimize works perfect without using CDN.
    As soon as CDN is used, Autoptimize
   stops working. Thats to bad as CDN is vital for some websites.
 * I use the CDN Linker from GitHub.com to connect with my account with SoftLayer.
   So far the only plugin that works with CDN is the JS & CSS Script Optimizer Plugin(
   The JS works – but not the CSS).
 * So it seams to be hard to find a plugin that optimizes both JS & CSS and have
   it both working with CDN.
 * Hopefully Autoptimize can solve this and make it a highly desired plugin.
 * Cheers RK

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/cdn-not-working/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cdn-not-working/page/2/?output_format=md)

The topic ‘CDN not working’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [cdn](https://wordpress.org/support/topic-tag/cdn/)

 * 23 replies
 * 5 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/cdn-not-working/page/2/#post-3604240)
 * Status: not resolved