• Resolved mtdas99

    (@mtdas99)


    Hello support,

    I am using Litespeed cache plugin with QUIC.cloud CDN. Everything is fine but the only critical problem is with the Rankmath plugin. Litespeed Critical CSS/UCSS pulls down the Rankmath meta tags below which caused SEO issue.

    For example social media platforms like Facebook, Twitter is unable to pull the OG image URL for the pages. The <meta property=”og:image” is showing wrong image URL on the cached pages. Also some meta properties generated by Rankmath are missing from cached pages.

    But I checked while logged in i.e. un-cached page, the meta properties showing the right things. Now, is there any right way to exclude Rankmath plugin from cache or optimization OR is there any solution for that? Help please.

    Report number: JGVQOZEI

    Report date: 03/05/2025 17:50:21

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support litetim

    (@litetim)

    @mtdas99
    I am sorry for the problems you encounter.
    Let’s take the problems one by one:

    • Litespeed Critical CSS/UCSS pulls down the Rankmath meta tags below which caused SEO issue. => what do you mean here? Is the order of tags the problem?
    • I see a webp image in og:image tag. Is not the correct one in page source?
    Thread Starter mtdas99

    (@mtdas99)

    1. No, order of meta tags is not the problem. The minified inline CSS comes before the meta tags. Facebook only checks for meta tgs/og:image in the first 50Kbs of the page source. As using inline CSS, the og:image will not be seen by Facebook. In other words, Litespeed minification break the Open Graph tags.
    2. Although the meta tags showing after inline CSS, but the og:image showing wrong image link in the page source. The page referenced here have an image set for social share through Rankmath.

    Please note that there are no issues like above in the uncached/unminified page.

    Plugin Support qtwrk

    (@qtwrk)

    add_filter('litespeed_optm_html_after_head','__return_true');

    please try this , this should move CCSS/UCSS to last line before </head>

    Plugin Support qtwrk

    (@qtwrk)

    add_filter('litespeed_optm_html_after_head','__return_true');

    please try this , this should move LiteSpeed generated code to last line beofre </head>

    Thread Starter mtdas99

    (@mtdas99)

    Thanks for the filter. Now the meta tags appears before UCSS/CCSS. But the og:image tag issue is still there. og:image tag is missing for some pages and wrong og:image link appears in some pages.

    Is there any way to exclude meta tags from optimization? OR any other method to resolve this?

    Plugin Support qtwrk

    (@qtwrk)

    I don’t think our plugin will touch “og:image” part

    I assume it is always reproducible ?

    only thing I can think of that can affect such thing is object cache, please try disable it and see how it goes

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

The topic ‘Litespeed conflict with Rankmath plugin’ is closed to new replies.