Support » Plugin: LiteSpeed Cache » http when activating cache

  • Resolved hungpham

    (@hungpham)


    Somehow, on one website, when I activated LS cache, the cssjs files were served via HTTP, not https. Deactivating LS cache, the problem disappears.

    It looks like the problem is only happening with a specific site, running the Whizz theme. I wonder where I can debug and find out the reason? The theme dev is useless, unfortunately.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please check if your WP setting —> General , both URLs are set to https://

    Best regards,

    Thread Starter hungpham

    (@hungpham)

    Hi.

    Yes, both are https already. The problem appears only when activating LC. Deactivated, all files are served with https.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please do me a screenshot for which requests is giving http ?

    Best regards,

    Thread Starter hungpham

    (@hungpham)

    Hi.

    Here is a part of source code:

    <meta name="robots" content="index, follow, max-snippet:-1, max-video-preview:-1, max-image-preview:large"/>
    <link rel="canonical" href="https://mydomain.com/" />
    <meta property="og:locale" content="en_GB">
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://mydomain.com/">
    <meta property="og:updated_time" content="2020-03-11T10:11:26+02:00">
    <link rel='dns-prefetch' href='//cdnjs.cloudflare.com' />
    <link rel='dns-prefetch' href='//www.youtube.com' />
    <link rel='dns-prefetch' href='//s.w.org' />
    <link rel='dns-prefetch' href='//youtube.com' />
    <link rel="alternate" type="application/rss+xml" title="xxxxxxxxxxxxxxxxxxx &raquo; Feed" href="https://mydomain.com/feed/" />
    <link rel="alternate" type="application/rss+xml" title="xxxxxxxxxxxxxxxxxxx &raquo; Comments Feed" href="https://mydomain.com/comments/feed/" />
    <link data-asynced="1" as="style" onload="this.onload=null;this.rel='stylesheet'"  data-optimized="1" rel='preload' id='qodeblock-fontawesome-css'  href='http://mydomain.com/wp-content/litespeed/cssjs/6793b.css' type='text/css' media='all' />
    <noscript>
    <link data-optimized="1" rel='stylesheet' id='qodeblock-fontawesome-css'  href='http://mydomain.com/wp-content/litespeed/cssjs/6793b.css' type='text/css' media='all' />
    </noscript>
    <link data-asynced="1" as="style" onload="this.onload=null;this.rel='stylesheet'"  data-optimized="1" rel='preload' id='wp-block-library-css'  href='http://mydomain.com/wp-content/litespeed/cssjs/922ce.css' type='text/css' media='all' />
    <noscript>
    <link data-optimized="1" rel='stylesheet' id='wp-block-library-css'  href='http://mydomain.com/wp-content/litespeed/cssjs/922ce.css' type='text/css' media='all' />
    </noscript>
    <link data-asynced="1" as="style" onload="this.onload=null;this.rel='stylesheet'"  data-optimized="1" rel='preload' id='qodeblock-style-css-css'  href='http://mydomain.com/wp-content/litespeed/cssjs/d23fb.css' type='text/css' media='all' />
    <noscript>
    <link data-optimized="1" rel='stylesheet' id='qodeblock-style-css-css'  href='http://mydomain.com/wp-content/litespeed/cssjs/d23fb.css' type='text/css' media='all' />
    </noscript>
    

    You can see that all files from //mydomain.com/wp-content/litespeed/cssjs/ are loaded with HTTP not https.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please add following code into wp-config.php ,purge all, and see if it still gives http ?

    define( 'LITESPEED_STATIC_URL', 'https://your_domain.com/wp-content/litespeed' )

    Best regards,

    Thread Starter hungpham

    (@hungpham)

    It’s loading via https now. However, the GUI is broken. I am trying to exclude .css files but a lot of small .css files with this theme and plugins 🙁 Excluding more than 10 .css files already, but the theme is still broken. Is there any faster way than excluding one by one?

    Thanks.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    When you see it broken , please screenshot the dev tool network list , and console if it shows any error.

    you can try exclude it by

    wp-content/themes

    this will exclude everything in that dir.

    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘http when activating cache’ is closed to new replies.