• Resolved Shah Ahmad Yusof

    (@shahahmadyusof)


    Hi,

    I am currently experiencing issues with my homepage and certain pages on my website, such as the Blog page (which lists the latest posts). This issue has significantly impacted my Google PageSpeed score for mobile devices. However, it does not affect the desktop version, as I have checked and confirmed that the desktop performance remains unaffected.

    Upon investigation, I discovered that the VPI feature for mobile is no longer functioning as intended. When analyzing my site with Google PageSpeed, I noticed that some above-the-fold images are incorrectly tagged as lazy-loaded. As a result, my Largest Contentful Paint (LCP) score has drastically increased.

    Additionally, when I edit the affected pages, the Viewport Images section displays outdated post featured images instead of the current featured images that appear above the fold.

    I attempted to reset the VPI on my homepage by following the instructions provided by you in this link. However, even after several days (approximately 4–5 days), the VPI on my homepage has not been regenerated. When I check the box, it remains empty, and the VPI queue indicator on LiteSpeed Cache → Page Optimization → VPI has stayed green for several days.

    I believe my cron jobs are functioning correctly, as I tested them by scheduling a post, which worked as expected. Furthermore, other LiteSpeed Cache features, such as Image Optimization, Unique CSS, and Critical CSS, are also working without issues.

    I have never experienced this issue before. My PageSpeed score has always been consistently between 94–100 on both mobile and desktop. However, since January, my score has dropped significantly on Google PageSpeed and Search Console.

    I would appreciate your assistance in resolving this issue. Thank you in advance.

    Report Number: GYMYZBVD
    Report Date: 02/21/2025 11:59:48

    Best regards,
    Shah Ahmad Yusof

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

    (@qtwrk)

    the VPI generated , but maybe the list is incorrect or incomplete

    please try go to homepage -> edit this page -> in VPI list , empty the list , then let it regenerate again , see what happens

    Thread Starter Shah Ahmad Yusof

    (@shahahmadyusof)

    Hi,

    Thank you for your response. I have followed your instructions and accessed the Homepage → VPI section. I cleared the field, and since it was already empty when I edited it, I pressed Ctrl + A and Delete to ensure there were no hidden whitespaces in the textarea. After that, I saved my Homepage and tested it in incognito mode, as well as on different browsers and devices.

    Upon checking LiteSpeed Cache → Page Optimization → VPI, I noticed that there are two queued tasks, both displayed in grey. Could you please advise on the next steps?

    Plugin Support qtwrk

    (@qtwrk)

    if you have enough quota , there should be a button run vpi queue manually , click it , and wait for sometimes to let it re-generates

    Thread Starter Shah Ahmad Yusof

    (@shahahmadyusof)

    Hi,

    I have manually run the VPI queue as you requested. However, after five days, it still hasn’t regenerated my VPI at all. Could you please take a look into this matter?

    Thread Starter Shah Ahmad Yusof

    (@shahahmadyusof)

    Hi @qtwrk
    I’m just following up on the VPI issue, as my PageSpeed score has worsened further. I’d really appreciate your assistance in resolving this as soon as possible. Please let me know if you need any additional details from my end.

    Looking forward to your prompt response.

    Thread Starter Shah Ahmad Yusof

    (@shahahmadyusof)

    Edit: Removed for sending twice

    Plugin Support qtwrk

    (@qtwrk)

    please try this

    go to debug setting , enable debug log , set log level to advance , debug include URI, add

    LSCWP_CTRL=vpi
    notify_vpi

    then go to toolbox -> log view -> clean up any existing log

    repeat the clean/regenerate steps

    once you clicked manual gen , wait for 20 minutes , then go to toolbox -> log view -> and share the log via https://pastebin.ubuntu.com/

    Thread Starter Shah Ahmad Yusof

    (@shahahmadyusof)

    Hi,

    I have already done what you asked, and here is the log you requested:

    https://pastebin.ubuntu.com/p/vYrd7crVpP/

    I also have another issue. Could this be related to why I can’t generate VPI? Please take a look at the screenshot https://prnt.sc/04_vH6bifGYt.

    Additionally, I tried accessing the mydomain/wp-json/litespeed/v1/token and received the response: {"_res":"ok"}.

    Plugin Support qtwrk

    (@qtwrk)

    I can see it sends the request, but from log never receives the notification call back ?

    please try this : disable object , put only /litespeed/v1 into debug include URI , clean up existing log , re-do the process , wait for , let’s say 30 minutes, see if any log generates

    Thread Starter Shah Ahmad Yusof

    (@shahahmadyusof)

    Hi. Just to clarify, did you mean disabling Object Cache? If yes, I have done that several times, but no logs were generated. Please let me know how to proceed.

    Plugin Support qtwrk

    (@qtwrk)

    yes , keep the object cache disabled for the time being , and debug include URI with /litespeed/v1

    if you don’t see any log in it , it could mean the your site’s WP REST API is disabled or blocked , maybe due to cloudflare protection ?

    and please confirm your server IP is 157.xxx.xxx.41 ?

    Thread Starter Shah Ahmad Yusof

    (@shahahmadyusof)

    Hi,

    I have disabled Object Cache as you requested. Does this mean I have to leave my Debug Log on?

    As far as I remember, I haven’t changed anything at all in Cloudflare that would block anything on my site, at least not in the past two years. If you can point out which setting I should enable in Cloudflare, that would be helpful.

    I also tried following a guide on the internet to check whether my REST API is blocked by going to mysite.com/wp-json/wp/v2/posts, but I can see that it is working.

    And yes, 157.xxx.xxx.41 is my IP address.

    Plugin Support qtwrk

    (@qtwrk)

     https://www.s_mb______.com/?rest_route=/litespeed/v1/token
    Headers
    HTTP/1.1 302 Found
    Date: Tue, 18 Mar 2025 13:32:17 GMT
    Content-Type: text/html
    Transfer-Encoding: chunked
    Connection: keep-alive
    location: https://127.0.0.1?rest_route=/litespeed/v1/token

    when I open in browser, it works , but when I use command line , just a program does , it redirects t o127.0.0.1

    Thread Starter Shah Ahmad Yusof

    (@shahahmadyusof)

    It appears that the redirection to 127.0.0.1 might be related to a security measure I have implemented in my .htaccess file to block unknown bots. Below is the snippet I have been using:


    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
    RewriteCond %{HTTP_USER_AGENT} (bot|crawl|robot)
    RewriteCond %{HTTP_USER_AGENT} !(bing|Google|msn|MSR|Twitter|Yandex|Pingdom) [NC]
    RewriteRule ^/?.*$ "http\:\/\/127\.0\.0\.1" [R,L]

    I have been using this configuration for many years alongside LiteSpeed Cache without any issues. However, this problem only started occurring in January, right after I updated the LiteSpeed Cache plugin.

    Could it be possible that the latest version of LiteSpeed Cache is using a bot-like user-agent, which is being blocked by my .htaccess rules, resulting in this behavior? I would appreciate any insights you may have on this.

    Plugin Support qtwrk

    (@qtwrk)

    please exclude our request , with user agent as

    QUIC cloud bot
    qcbot
Viewing 15 replies - 1 through 15 (of 23 total)
  • You must be logged in to reply to this topic.