WordPress.org

Support

Support » Plugins and Hacks » relative image links in CSS delivered by CDN(SSL)

relative image links in CSS delivered by CDN(SSL)

  • Hi,

    I have relative image, and font links within my CSS files. I have set up the CDN (MaxCDN) usign http and https using a comma seperated list of cname records.

    I am finding that when I visit my site via https these relative images and fonts are being served via the http CDN which is causing mixed content warnings.

    The relative links are replaced within the CSS file with an absolute URL okay, however this is one of the number of http CDNs rather than the SSL one.

    Is there anyway to force W3TC to always use SSL CDN if it is available?

    Thanks

    Stephen

    https://wordpress.org/plugins/w3-total-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • unhuman

    @unhuman

    Did you solve this? I’m currently devising a way to do just this now…. I’d think this would be a common problem, but it’s hard to find anyone talking about this. Particularly, I want to version files by their contents so the CDN’s benefits can be leveraged across product releases. Thanks!

    Willie Jackson

    @williejackson

    CDN Settings page > SSL Support > Enabled

    I bumped into the same problem, and even after enabling SSL (Always use SSL) – those links are still HTTP 🙁 All other links are fine, apart from those relative links inside CSS as the original poster mentioned.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘relative image links in CSS delivered by CDN(SSL)’ is closed to new replies.