Title: [Plugin: WP Super Cache] Toggle for conditional CDN for sites with some SSL / https content?
Last modified: August 19, 2016

---

# [Plugin: WP Super Cache] Toggle for conditional CDN for sites with some SSL / https content?

 *  [Alvaro Degives-Mas](https://wordpress.org/support/users/nv1962/)
 * (@nv1962)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-toggle-for-conditional-cdn-for-sites-with-some-ssl-https-content/)
 * I’m very pleased with WP Super Cache. Certainly in the last few releases, getting
   it to perform well out-of-the-box has become much simpler. Especially the support
   for CNS (self-hosted or “real” CDNs) is fantastic. However: I have a site that
   has some content over https (mostly the wp-admin area, including logins and registrations)
   and I’d like to be able to also selectively add just a few more pages to SSL 
   as well, while keeping the rest, the majority over regular HTTP. Pages like event
   reservations, contact form, profile pages on the front end to either show or 
   modify one’s profile data; those seem “sensible” pages for SSL.
 * The thing with CDN as it currently works in WP Super Cache is that it quasi-randomly
   assigns the subdomains defined in the CDN settings to static elements (e.g. images,
   scripts, css) on a cached page. And because of the restrictions on subdomains
   with SSL certificates (very few have a relatively expensive “wildcard” cert which
   supports subdomains) that means a page “hard-set” to be served over SSL (e.g.
   via the great [WordPress HTTPS plugin](http://www.wordpress.org/extend/plugins/wordpress-https/))
   that that page won’t “validate” or more precisely: it’ll have a mixed content
   warning problem, due to those CDN subdomains not running over a properly signed
   certificate.
 * So my suggested idea is to have one extra setting in the CDN settings page, essentially
   to switch off the CDN function (and “advanced” caching) for those pages that 
   are running over SSL.
 * While this is an issue that few WP Super Cache sites will have (not many use 
   a “real” private SSL cert) I think that for sites on a tight budget (ours is 
   for a non-profit) and therefor using a self-hosted CDN as well as one SSL cert
   this would be a great feature.
 * Then again, I acknowledge that this is very much a fringe relevance issue…

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-toggle-for-conditional-cdn-for-sites-with-some-ssl-https-content/#post-1876235)
 * Good idea. I’ll see about that.
 *  Thread Starter [Alvaro Degives-Mas](https://wordpress.org/support/users/nv1962/)
 * (@nv1962)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-toggle-for-conditional-cdn-for-sites-with-some-ssl-https-content/#post-1876261)
 * It’s going to feel like Christmas all over again!
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-toggle-for-conditional-cdn-for-sites-with-some-ssl-https-content/#post-1876265)
 * Just updated [trunk](http://svn.wp-plugins.org/wp-super-cache/trunk) if you want
   to grab that with svn? I haven’t tested it as I don’t have any https sites so
   I’d appreciate any testing you can do!
 *  Thread Starter [Alvaro Degives-Mas](https://wordpress.org/support/users/nv1962/)
 * (@nv1962)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-toggle-for-conditional-cdn-for-sites-with-some-ssl-https-content/#post-1876276)
 * OK. Don’t laugh.
 * I know what Subversion is, but eh, I’ve never used it. So I had to wait a few
   days until I had time to research it and find what I need to know and have running
   to pull those files (I stubbornly figured that’d be even faster than pulling 
   all files with right-click save as…) so that’s why I’ve been mum.
 * I apologize for being an udder coding n00b (then again you can ask me more about
   localization issues, fortunately)
 * I just pulled the files; it’s now running, and so far, so good. I can’t thank
   you enough for being so fast with this!
 * BTW: earlier this evening I ran into [these guys here](https://www.startssl.com/)
   who offer a free 1-year but of course unvalidated simple SSL cert, i.e. for just
   one (sub)domain. You still would need a static IP to get it going but even their
   wildcard cert (I’m using SSL just for encryption / privacy purposes) looks darn
   cost-effective.
 *  Thread Starter [Alvaro Degives-Mas](https://wordpress.org/support/users/nv1962/)
 * (@nv1962)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-toggle-for-conditional-cdn-for-sites-with-some-ssl-https-content/#post-1876281)
 * So far so good, no more mixed content issue here! Awesome – thanks again, Donncha!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: WP Super Cache] Toggle for conditional CDN for sites with some
SSL / https content?’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

## Tags

 * [cdn](https://wordpress.org/support/topic-tag/cdn/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 5 replies
 * 2 participants
 * Last reply from: [Alvaro Degives-Mas](https://wordpress.org/support/users/nv1962/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-toggle-for-conditional-cdn-for-sites-with-some-ssl-https-content/#post-1876281)
 * Status: not resolved