• Resolved survivehive

    (@survivehive)


    I have an issue where the CSS and JS from Woocommerce are not being included in the single JS/CSS files. This issue ONLY appears on HTTPS.

    I currently have a htaccess rewrite rule to force https, however if I disable it I can go to:

    https://www.mysite.com

    and the woocommerce CSS and JS are being included in the optimized single files.

    I can then go to:

    https://www.mysite.com

    and the woocommerce CSS and JS are in the footer in their own <script> and <link> tags.

    Is there something peculiar about ob_start()’s callback on SSL?

    https://www.ads-software.com/plugins/autoptimize/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Frank Goossens

    (@futtta)

    I guess this is because (some) of the resources are still served over HTTP while in HTTPS. The upcoming 1.9.0 has some improvements to handle situations like this, you can download it here. Feel free to give it a spin, let me know if that solves your issues.

    frank

    Thread Starter survivehive

    (@survivehive)

    The src attribute of the resources in question begins with //, not actually https://

    I can also monitor the network tab and see no HTTP resources.

    I will try 1.9.0 out anyway and report back.

    Thread Starter survivehive

    (@survivehive)

    Success — issues resolved in 1.9.0. Outstanding! Thanks!

    Plugin Author Frank Goossens

    (@futtta)

    great, happy 1.9 works for you.

    do let me know if anything else pops up, expected release is for the first half of september.

    Hi Frank,

    Sorry for posting here, but I am experiencing the same issue.
    Unfortunately, this upcoming 1.9.0 doesn’t work for me.
    The site uses https, and I can see that woocommerce css src begins with ‘//’ just like what @survivehive said.
    I am working on this site.

    Anything I missed on the configs?

    TIA

    Plugin Author Frank Goossens

    (@futtta)

    hi captain;
    that’s a domain-mismatch (and not a protocol-one); autoptimize only aggregates scripts/css on the exact same domain and https://www.bosgadget.com !== bosgadget.com. If you make sure all your CSS/JS are loaded from www, it will aggregate just fine ??

    hope this helps,
    frank

    Ah! good point!
    just don’t know why it shows without www, but will look after it.

    thank you very much frank!

    ———
    EDIT

    found it why.
    I missed a ‘www’ on wordpress https plugin setting.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issues with Autoptimize not including woocommerce JS/CSS with SSL’ is closed to new replies.