WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Disable CDN for SSL? (9 posts)

  1. evanr76
    Member
    Posted 3 years ago #

    Is there a way to defeat CDN usage for when a blog is accessed via SSL?

    Our blog runs in both non-SSL and (for a handful of functions) SSL.

    Our CDN only supports non-SSL.

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. evanr76
    Member
    Posted 3 years ago #

    To be more specific,

    When our blog is accessed via SSL, W3TC is trying to rewrite our assets as

    https://our-cdn-domain.com/wp-content/...

    but our-cdn-domain.com is not listening on https port so this fails.

  3. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    In the development release you can use: DONOTCDN constant in any logic you have, aside from that currently no unless you have a CDN that supports https (like AWS).

  4. evanr76
    Member
    Posted 3 years ago #

    Thank you.

    Would you consider developing a feature to allow different CDN hosts depending on SSL or non-SSL access?

    We looked into Cloudfront, which would work, but the lack of origin pull makes it much less convenient for us.

    We have discovered that our existing CDN does support SSL, but the hostname and URI structure is slightly different for SSL.

  5. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    It is already in the roadmap. There are just too many possible implementations to prioritize it for now. The plugin already has many options.

  6. evanr76
    Member
    Posted 3 years ago #

    Understood.

    When you do get around to it, also consider that some CDNs prescribe not just a hostname but as well a full URI for a CDN.

    In our situation, our non-SSL CDN hostname is our-company.our-cdn.com/<origin-path>, but our SSL CDN has a prescribed hostname and URI prefix i.e. our-company.secure.our-cdn.com/our-company/<origin-path>

    Thanks for making a great plug-in.

  7. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    Can you advise as to which CDN provider uses such a scheme please?

  8. evanr76
    Member
    Posted 3 years ago #

    Level 3

  9. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    Have a link to the product you're using there?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic