-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switching a website from HTTP to HTTPS breaks HTML Compressor-combined files (Using CloudFlare) #413
Comments
Yes this is when using cdn cloudflare. |
@riseofweb Quick Cache will use whatever settings you've configured in WordPress. There is no special setting for HTTP vs HTTPS in Quick Cache. If you cleared the cache, then future requests should be serving things over the correct URL. However, I'm wondering if something is getting cached in your browser or via CloudFlare. Would you be able to share the URL to your site so I can see this happening for myself? |
I have found a solution using "//" instead of https// or http:// I am using cloudflares flexable ssl So the original server is not ssl but then cloud flare turns it into ssl. at the end of the function: I added this before the return: $url = str_ireplace("http://","//",str_ireplace("https://","//",$url)); And it fixed the http call that broke the ssl cert I would recommend adding this as a check box somewhere in your plugin setting page. Here is my website https://riseofweb.com Thanks! I love your plugin. |
This should not be necessary if your server environment is compatible with the WordPress If you are using a load balancer, have you made adjustments at the server level to make your environment compatible with the WordPress |
I ran this inside of by wp theme footer.php file: It echoed true... My hosting is shared hosting at GoDaddy (Web - Deluxe - Linux) My guess is the error with the http and https has to do with CloudFlare's Flexible SSL: There is an encrypted connection between your site visitors and CloudFlare, but not from CloudFlare to your server. You do not need an SSL certificate on your server. |
Can you also run a test where you echo |
returned |
@riseofweb Thank you. Hmm, this is not making sense to me yet. @raamdev I think we need to run some tests of our own against CloudFlare to see what is actually going on here. If the current scheme returned by The HTMLC uses |
@jaswsinc writes...
Agreed. We've got a couple of related issues open regarding CloudFlare and Quick Cache: #22 and #348. I'm going to mark this issue as @riseofweb Thanks so much for the report and for helping us with this! :-) If you're interested in helping us with beta testing, please sign-up to be a beta tester here. |
Related GitHub IssueNoting here that there's another GitHub Issue (#348) related to this one. I'm closing the other GitHub issue in favor of this one. |
on what line in what file are you changing to im having the same problem when i use combine... |
fyi |
~ Line 2407 of just before the line that has: |
@riseofweb @chrillep Thanks for your help and your patience on this issue. We finally identified an issue that we believe is related to the problem outlined here and we're releasing a fix in the next release of ZenCache Pro. If either of you are able to confirm that the next release fixes the issue for you, that would be great! |
Next Pro Release Changelog:
|
ZenCache Pro v151002 has been released and includes changes from this GitHub Issue. See the ZenCache Pro v151002 release announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#413). |
I have recently moved from a http to https and the combined minified files are still being served at http and therefor not loading, because of broken security.
I switched the http to https in the website url general settings. I have been able to get everything to work except for the combined files still being served over http.
I of course have cleared the cache.
Is the web address stored somewhere, or do I need to delete some files?
The text was updated successfully, but these errors were encountered: