Skip to content

Instantly share code, notes, and snippets.

@anthonysomerset
Created November 10, 2011 11:18
Show Gist options
  • Select an option

  • Save anthonysomerset/1354635 to your computer and use it in GitHub Desktop.

Select an option

Save anthonysomerset/1354635 to your computer and use it in GitHub Desktop.
wordpress theme function to disable CDN loading on SSL pages (requires w3 total cache plugin)
add_action('wp_head','nocdn_on_ssl_page');
function nocdn_on_ssl_page() {
if ($_SERVER['HTTPS'] == "on") {
define('DONOTCDN', true);
}
}
@jackson2w
Copy link
Copy Markdown

No longer needed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment