• Resolved Aditya Agarwal

    (@adityamilyin)


    I am using LiteSpeed Cache for optimizing my site. The Guest Mode and Optimization is ON. Besides, the UCSS, CCSS, Minify, and Combine are also active.

    My site functions normally overall, but the header is just not working. I suspected a JS issue, but doing inspect element confirms that the classes are being added, just that the CSS is not their, presumably because UCSS is excluding them.

    It works perfectly for logged in users (UCSS is ON for all), so the issue is likely Guest Optimization.

    My site URL is https://milyin.com/ I have already added all relevant UCSS Allowlist Selectors. https://snipboard.io/RbK92H.jpg

    But that did not help. Please advice.

    Also, is there anyway I can force LiteSpeed to include 1 css file at all times, bypassing the UCSS checks? If that can be done all my problems will be solved.

    Report: KYEHCBUM

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

    (@qtwrk)

    https://milyin.com/wp-content/plugins/litespeed-cache/guest.vary.php

    this returns [] but it should be {"reload":"yes"} , this looks like you have something that disables or blocks this request, please verify.

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    I dont really know.

    I performed complete conflict test, deactivatng all plugins but LiteSpeed Cache and shifting to default WordPress theme.

    Still couldn’t get it to display anything other than ‘[]’.

    Please advice.

    Secondly, I am not really sure how it is relevant to my issue of Guest Optimization / UCSS. Though you are the better judge.

    Plugin Support qtwrk

    (@qtwrk)

    the javascript in guest mode is delayed and optimized, so if that guest.vary.php is not working , it can not be redirected to normal page , that’s the issue number 1

    now after you fixed that request , please try disable JS minify/combine and set defer JS to OFF , purge all , see how it goes.

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    Any suggestions on what could be the error?

    I have tried everything and haven’t been able to get that Guest Vary to work.

    It is most likely a issue within the plugin, as complete conflict tests and multiple PHP versions have been tested on my site.

    Could there be a setting that I might have “accidentally changed” that resulted in Guest Vary not working.

    Another Observation: The issue seems to appear on some pages but not on others. Some pages rarely have navbar working for guests, while other have navbars always working.

    Also, I added the whitelist selectors for elements in Navbar. Why are they still being excluded? Since those selectors are whitelisted, there CSS code should always be included in pages.

    Please advice.

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    Okay,

    So, Another Quick Observation. I think I’ve got that Vary link working.

    On a first time load it shows the expected reload : yes value. But upon refresh (Second visit) it shows empty array. So, I assume this is the expected behvarior.

    Just open fresh incognito tab and see, I think it works.

    So, I recorded a video. It shows all plugins and themes are operation, I clear my cache, and then open incognito the expected value of reload is observed. Thereafter I refresh page and again the array is empty.

    https://drive.google.com/file/d/1HfWjC774UEm-Ie_ObUg_vtvtpJlnUebP/view?usp=sharing

    So, what is the next step for us? How do we get my issue resolved?

    Plugin Support qtwrk

    (@qtwrk)

    have you tried as my last replied suggested ?

    please try disable JS minify/combine and set defer JS to OFF , purge all , see how it goes.

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    No. I have checked that the CSS classes are changing on button click, but the changed classes don’t have relevant CSS. So, clearly not a JS issue (as JS part is working).

    If you still want me to try it, let me know, I will happily honour your suggestion.

    Plugin Support qtwrk

    (@qtwrk)

    well, based on my experience , most of the time , such error is related to JS , you could try JS first, if not then try the CSS options OFF

    basically we need to locate which option caused trouble , and then we will see what to do next.

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    Hi,

    I tried. Unfortunately, the cache rebuild takes time and it is only once the cache is built and crawling is done that I can do the evaluation.

    Though, I noticed significant performance score drop after turning of JS optimization, so I can’t really have it OFF for long term (even if it solves the issues.)

    I will keep testing and update you within few hours. But, at the same time, is there any way we can work on the whitelist for CSS selectors in Guest Optimization and do something to better include CSS for Guests? Because Whitelist not working seems to be an issue from you.

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    To be clear,

    Guest Mode: ON
    Guest Optimization: ON
    CSS Combine: ON
    CSS Minify: ON
    UCSS: ON
    CCSS: ON

    JS MINIFY: OFF
    JS Combine: OFF
    JS DEFER: OFF

    My Tests for Logged In users are significantly worse (My Customer retention would be worse due to speed disadvantage). For Logged Out users, things remain mostly same.

    I will keep you updated about the degree of resolution of issue.

    Plugin Support qtwrk

    (@qtwrk)

    emm , now please try disable these 4 CSS and purge , see how it impacts the mobile menu

    and no , these options don’t affect login user , from your report , your setting about page optimization only applies to guest user, but doesn’t apply to login user.

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    So,

    An Update:

    With the settings that I mentioned above, Menu has stopped working at many pages, including Home, so things aren’t right.

    Regarding your comment about pagespeed, I am not sure why, but I am seeing HIGH TTFB for logged in users.

    Also,

    Guest Mode: ON
    Guest Optimization: ON
    CSS Combine: OFF
    CSS Minify: OFF
    UCSS: OFF
    CCSS: OFF
    JS MINIFY: OFF
    JS Combine: OFF
    JS DEFER: OFF

    Cache is also purged. Will observe and update you in next 12-15 hours of testing.

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    Worked Suprisingly well.

    Issue is resolved. Though, I will try to turn on a few things and try all combinations to have atleast a few of them set to “On”.

    Regardless, my purpose is solved. Thanks for your support.

    I am using LiteSpeed Cache for optimizing my site. when i turn on guest optimization my website is got breaked. kindly help me resolve this issue.

    my website: https://techsparkzz.com/

    Report number:?NQIURIDA

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘LiteSpeed Cache Guest Optimization Breaks Menu’ is closed to new replies.