• Resolved jpprietobaez

    (@jpprietobaez)


    Hi there,

    Tried CDN Enabler in a development site and worked just fine with an Alias zone and Let’s Encrypt enabled.

    Now I’m trying to get it to work on the live site without any luck. For some reason the urls are not being replaced regardless of what zone URL I use. I tried purging both Redis and Nginx caches and still nothing. It’s almost as if the plugin isn’t even installed!

    Any pointers would be appreciated.

    https://wordpress.org/plugins/cdn-enabler/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Can you provide me with the link to your website?

    A link to a screenshot of your CDN Enabler plugin settings would also be helpful in resolving the issue.

    Thanks

    Thread Starter jpprietobaez

    (@jpprietobaez)

    Production Site

    CDN Enabler Settings
    https://dl.dropboxusercontent.com/u/7553585/lndr.uk.png

    I assume you have Let’s Encrypt enabled for this zone? You’ll need to change the CDN URL to https://cdn.lndr.uk and also enable the CDN HTTPS option.

    Additionally, I also checked one of your CDN assets and noticed that it is being downloaded when accessed instead of displayed in the browser. (e.g. https://cdn.lndr.uk/wp-content/themes/FoundationPress/assets/stylesheets/foundation.css)

    Do you happen to have the Force Download option enabled in your zone’s features?

    Thread Starter jpprietobaez

    (@jpprietobaez)

    Hey thanks for the quick response.

    Yes Let’s Encrypt is enabled in the zone.

    You’ll need to change the CDN URL to https://cdn.lndr.uk and also enable the CDN HTTPS option.

    Yes. I tried pretty much all possible combinations and neither changed any of the urls shown in the DOM. Works ok on the dev site. The crazy thing is that I defined https://lndr.uk as the origin url on the KeyCDN’s zone and despite this it still seems to work on the dev site which is not even in the same domain.

    Do you happen to have the Force Download option enabled in your zone’s features?

    Yes, I enabled this recently in one of my attempts to get it working but got nothing either way.

    I’m afraid I’ll have to revert back to Total Cache and see what happens.

    Will keep you posted If I find an answers.

    I just checked your site again and can see that all static assets are now using https://cdn.lndr.uk to deliver content.

    Has the issue been resolved?

    Thread Starter jpprietobaez

    (@jpprietobaez)

    Hey Cody,

    Thanks for checking!. These are being delivered via Total Cache but I personally would love to avoid using it as there’s way too much bloat for my needs.

    I just wanted to valide that the KeyCDN one settings were working ok.

    I’ll have another go with Enabler tomorrow and see what happens.

    Again thanks for your help.

    P.S – My wild guess is that Enabler is getting confused with multiple installs in the same nginx/redis server.

    Hello Cody, my developer installed yesterday CDN Enabler but it is not working at all. We are also using WP Fastest Cache and Autoptimize on the same site.

    Please let me know how I can fix this.

    Plugin Author KeyCDN

    (@keycdn)

    I recommend that you disable other caching or optimization plugins to check if this resolves the issue.

    Also check if there are assets that are outside of the Included Directories.

    The CDN Enabler works very well with our Cache Enabler plugin if you want to give it a try: https://wordpress.org/plugins/cache-enabler/

    Thread Starter jpprietobaez

    (@jpprietobaez)

    Hey guys,

    Still struggling with this. Quick clarification, re: Let’s Encrypt enabled zones.

    On my site http://lndr.uk I already had configured Let’s Encrypt for SSL. Could this be conflicting with the Let’s Encrypt’s version of the KeyCDN zone? Do I need both? The reason I ask is because on my other test site which didn’t have a Let’s Encrypt cert it KeyCDN seem to have worked.

    P.S – I’ve now changed the zone from cdn to assets.lndr.uk to try and see if it works. Still no luck.

    Plugin Author KeyCDN

    (@keycdn)

    This is not a CDN Enabler issue but rather a redirect problem on your server:

    $ curl -I https://assets.lndr.uk/wp-content/uploads/2016/08/lnr_logo-e1470159736461.png
    HTTP/1.1 301 Moved Permanently

    I recommend that you double check your htaccess file if there is a redirect rule that is causing this.

    They way you are using Let’s Encrypt is not a problem in this setup.

    Thread Starter jpprietobaez

    (@jpprietobaez)

    Ok. I think that was because I had Force SSL redirect defined in the zone?

    I changed it and tried

    curl -I https://assets.lndr.uk/wp-content/uploads/2016/08/lnr_logo-e1470159736461.png
    HTTP/1.1 200 OK
    Server: keycdn-engine
    Date: Thu, 18 Aug 2016 09:28:11 GMT
    Content-Type: image/png
    Content-Length: 1994
    Connection: keep-alive
    Last-Modified: Tue, 16 Aug 2016 14:01:26 GMT
    ETag: “57b31cb6-7ca”
    Expires: Thu, 25 Aug 2016 09:28:11 GMT
    Cache-Control: max-age=604800
    Link: <https://lndr.uk/wp-content/uploads/2016/08/lnr_logo-e1470159736461.png&gt;; rel=”canonical”
    X-Cache: HIT
    X-Edge-Location: uklo
    Access-Control-Allow-Origin: *
    Accept-Ranges: bytes

    But the URLS are still not being replaced in the site πŸ™

    Driving me nuts.

    Thread Starter jpprietobaez

    (@jpprietobaez)

    And here’s a KeyCDN log for another manual curl I did.

    2016-08-18 09:47:11	uklo	x.x.x.x	GB	assets.lndr.uk	HIT	200	HEAD	/wp-content/uploads/2016/08/lnr_logo-e1470159736461.png

    As far as I can see the zone is setup correctly, now if CDN Enabler would indeed replace the urls it should all work just fine.

    I’ve tried disabling opCache and purging redis and ngix caches and still nothing.

    P.S If I wanted to fully reinstall CDN Enabler are there any DB options/fields I should be deleting to ensure a complete uninstall?. Just thinking it may be a problem there.

    Thread Starter jpprietobaez

    (@jpprietobaez)

    Ok I solved this by using using an NGINX sub_filter.

    No need for for Enabler anymore.

    thanks for your help anyway.

    Plugin Author KeyCDN

    (@keycdn)

    I’m sorry to hear that it didn’t work out in your setup. Another plugin might interfere with the link rewrite.

    @jpprietobaez

    Ok I solved this by using using an NGINX sub_filter.

    Do you mind sharing that sub_filter configuration, I’m into that problem too and Nginx could be the answer for me also.

    Thanks πŸ™‚

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘URLs not getting replaced’ is closed to new replies.