• Resolved kacper3355

    (@kacper3355)


    Hi. I’ve modified single.php (single posts pages) pretty heavily with CSS. It all works great, but CSS changes don’t show up in posts previews when LiteSpeed Cache is enabled. When the post is published, everything works great. Is there any way to fix it?

    Report number: YUSMLSND

    Quick example:

    Widget in single post preview when LS Cache is enabled: https://i.imgur.com/gAsfWx0.jpg
    Widget in single post preview when LS Cache is disabled: https://i.imgur.com/vFJoBMs.jpeg

    Thanks,
    Kacper

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter kacper3355

    (@kacper3355)

    It can be fixed by excluding roles out of optimalization in tuning tab, but it’s not ideal solution. I tried to exclude URL’s, but it doesn’t seem to work – I tried exact match as well just the beginning of URL. It’s not cache related, because excluding roles in Cache tab doesn’t change anything. Of course I purge everything after making changes.

    Thread Starter kacper3355

    (@kacper3355)

    …it also seems like it’s not related to CSS options in LSCache. I disabled every single one and no change. Only disabling optimization for specific user roles does the trick.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    like it’s not related to CSS options in LSCache. I disabled every single one and no change. Only disabling optimization for specific user roles does the trick.

    did you try turn off CCSS ?

    you can try reset to default setting first, see how it goes

    if it works on default , then it means one of the options leads to this , just need to dig out which one was it

    Best regards,

    Thread Starter kacper3355

    (@kacper3355)

    Yes, I’ve tried disabling CCSS but I didn’t help nor disabling every single option in JS tab. I also resetted settings to default but it also didn’t help. Maybe there is a way to exclude just post preview pages from being optimized?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I don’t think preview page is cached at all ?

    please check by dev tool , to see what it shows in response header, and in request list, do you see any CSS files coming from /wp-content/litespeed/cssjs/ directory ?

    Best regards,

    Thread Starter kacper3355

    (@kacper3355)

    Hi @qtwrk

    I just found out what option is causing the issue. It’s “Remove Query Strings” – when I disable it, everything works good. So is there any way to exclude post previews from this option?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    you can exclude the preview URL from being optimized on Page optm -> tuning setting -> URI exclude

    Best regards,

    Thread Starter kacper3355

    (@kacper3355)

    I tried to add &preview=true but it doesn’t work. Should I add something else?

    Plugin Support qtwrk

    (@qtwrk)

    try use preview in Page Optimization -> Tuning setting -> URI exclude

    and please provide the new report number with your latest conf

    Thread Starter kacper3355

    (@kacper3355)

    Sadly it doesn’t work either

    Report number: YCLXLEFR

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    then please enable debug log , see what it says when opening that page.

    Best regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’m going to mark this topic “Resolved”, due to lack of activity.

    If you still need help, please feel free to re-open it.

    When re-open it, please also change the topic status to “not solved”

    Best regards,

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘CSS changes don’t work in posts previews when LS Cache is enabled’ is closed to new replies.