Doesn’t work well for https sites
-
I’m getting a mix content issue when trying to enable css / js optmisation because this plugin is loading it’s files over http instead of https.
Please fix or provide advice.
-
AO uses WordPress core site_url() to get the base URL. So what are your WordPress Address and Site Address in “settings -> general”?
These URLs are both HTTPS.
It’s hosting on WPengine – Could that play a part?
I wouldn’t think it would cause something like this.
I’ve tried uninstalling and reinstalling, but same issue.
there are hundreds of sites with AO on WPengine, so that cannot be the reason.
no idea what is causing this I’m afraid, but what you can do is add your CDN (with
https://
) in the CDN-field in AO?Yes, I’ve added the CDN in, still doesn’t help.
well, if you added the CDN URL with
https://
and the AO’ed files are still loaded over http://, then there is something _very_ odd happening. I think now is the time I’ll have to ask you for your site’s URL πIt’s https://www.disabilityaccessconsultants.com.au/
The JS / CSS part of the plugin is off now but the error message related to it loading the css / js assets version over http version of the site.
near impossible to guess what is going on I’m afraid, esp. when not able to see it broken π
But I do understand you don’t want to leave your site broken, so what might be a solution is to activate AO briefly, then run a test on https://webpagetest.org/ and post the result-URL here so I can review?
Console errors:
Mixed Content: The page at 'https://www.disabilityaccessconsultants.com.au/' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.disabilityaccessconsultants.com.au/wp-content/cache/autoptimize/css/autoptimize_9fec2bb5fe6b5444bc731fb57119e060.css'. This request has been blocked; the content must be served over HTTPS. (index):1 Mixed Content: The page at 'https://www.disabilityaccessconsultants.com.au/' was loaded over HTTPS, but requested an insecure script 'http://www.disabilityaccessconsultants.com.au/wp-content/cache/autoptimize/js/autoptimize_064d1e7e3e5b0b19573db889172c2680.js'. This request has been blocked; the content must be served over HTTPS. (index):1 Mixed Content: The page at 'https://www.disabilityaccessconsultants.com.au/' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.disabilityaccessconsultants.com.au/wp-content/cache/autoptimize/css/autoptimize_9fec2bb5fe6b5444bc731fb57119e060.css'. This request has been blocked; the content must be served over HTTPS.
This breaks all CSS / JS as it doesn’t load in the latest version of chrome because of mixed content
- This reply was modified 6 years, 2 months ago by DigitalCourt.
well, that proved interesting;
so:
* the AO’ed files are requested over HTTPS (https://2vxa36mqtyb34gd0r1j9tlh1-wpengine.netdna-ssl.com/wp-content/cache/autoptimize/css/autoptimize_9fec2bb5fe6b5444bc731fb57119e060.css)
* but the CDN is redirecting to the non-CDN non-HTTPS version of the file http://www.disabilityaccessconsultants.com.au/wp-content/cache/autoptimize/css/autoptimize_9fec2bb5fe6b5444bc731fb57119e060.css which will indeed not load in a HTTPS-context
* the AO’d file is however perfectly availble on the HTTPS local version, e.g. https://www.disabilityaccessconsultants.com.au/wp-content/cache/autoptimize/css/autoptimize_9fec2bb5fe6b5444bc731fb57119e060.cssso this actually looks like a config issue on CDN-level? maybe check with WP Engine?
ok great! That looks promising.
Thanks – I’ll report back if it fixes it
so any progress on getting that redirect fixed @digitalcourt? π
It worked! Thanks for your help @futtta
happy to hear so digitalcourt! feel free to leave a review of the plugin and support here! π
- The topic ‘Doesn’t work well for https sites’ is closed to new replies.