Forums

WP Super Cache
CDN script creates invalid links: "http://http://cdn.hostname.com&quot (4 posts)

  1. simondaniels23
    Member
    Posted 3 months ago #

    Hello,

    I enabled CDN support in WP Super Cache and put in my CDN URL (e.g. http://12345abc.cloudfront.net). This turned all my links into http://http://12345abc.cloudfront.net/path/file.js. Note the double http://. Obviously that means my website doesn't load properly.

    Even when I omit http:// from my CDN URL, I still get this. I've tried turning caching off and on but no luck.

    Any ideas? Thanks!

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Posted 3 months ago #

    Very odd. The only thing I can suggest is you look at the ossdl php file and try to figure out from the code what's happening.

  3. simondaniels23
    Member
    Posted 3 months ago #

    If it helps, here's how I'm attaching my stylesheets:

    wp_enqueue_style("jqueryui_css", get_bloginfo( 'stylesheet_directory' )."/css/jqueryui/custom.css", false, $pp_theme_version, "all");

    The regex in ossdl.php is fairly complex and I'm nervous messing with it. Can I try a separate CDN plugin? Will that conflict with Super Cache?

    Thanks!

  4. Donncha O Caoimh
    Member
    Posted 3 months ago #

    You can of course use another CDN plugin. Just disable the one in Supercache first and there won't be any conflict.

Reply

You must log in to post.

About this Plugin

About this Topic