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.
-
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?
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.
OK, did a quick test on my test-blog 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)?
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-FPMThe 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.
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 ??
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.
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 ??
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?
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.Just found out with reseting the plugin installation in sql tables, the CDN works again, both js $ css; tnx everyone ??
Hurray!
But for my understanding; “resetting the plugin installation” = removing autoptimize options to go back to default?
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.
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
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
- The topic ‘CDN not working’ is closed to new replies.