• What is the best way for me to get my site to rewrite the JS and CSS from the plugins to the CDN

    I am using a origin pull CDN (MaxCDN) and I can not figure out how to get the plugin URL to change to use the CDN.

    Unless I am missing something in the plugin, I can not find it.

    I have also tried a quick filter:

    function pluginCDN() {
    return “http://xxx.domain.netdna-cdn.com/” ;
    }
    add_filter(‘plugins_url’, ‘pluginCDN’);

    and that worked for me.

    Is there are reason why there W3 Cache does not rewrite the plugin url for Origin Pull / Max CDN style cdn’s

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter graymerica

    (@graymerica)

    Sorry to respond to my own post, but that above is pretty wrong.

    On second look, I was able to use the

    define( ‘WP_PLUGIN_URL’, ‘http://***.****.netdna-cdn.com/wp-content/plugins’);

    to rewrite most of the plugins.

    My question now is what is the best method to check to see what the value is set in W3 Cache for Mirror.

    I have looked for defined variables and through the W3 Object.

    Can anyone tell me what value I can reference to see if a mirror value has been set.

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Just using the minify capabilities for JS and CSS and the help tool on the minify settings tab can get you started. NetDNA should be able to give you support with configuring the CDN settings tab.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: W3 Total Cache] plugins_url does not use the CDN’ is closed to new replies.