• Resolved usrobotx

    (@usrobotx)


    Hello,

    I am using WP astra without almost any modifications (just a couple of standard plugins). I installed LiteSpeed cache and activated Advanced Cache (Recommended). The results performance-wise are just super. But in Google Page Speed report some problems appeared. Namely:

    Browser errors were logged to the console. They indicate two problems (For any of the pages, for testing purpuses I tested https://georgiafy.ge/bank-account/ )

    Source: …litespeed-cache/guest.vary.php:1:0(georgiafy.ge) || Description – Failed to load resource: the server responded with a status of 406 (Not Acceptable)
    Source:/bank-account/:1:0(georgiafy.ge) || Description: SyntaxError: Unexpected token ‘<‘, “<tit”… is not valid JSON

    How can I solve these issues?

    Thanks in advance.

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

Viewing 15 replies - 1 through 15 (of 18 total)
  • You don’t have LiteSpeed web server running and only with this web server you can use cache function, so disable cache and the error disapears.

    If you want to use Cache function either switch to a hosting provider that offers LiteSpeed or use quic.cloud instead.

    Plugin Support qtwrk

    (@qtwrk)

    I don’t see the error , may I know how to trigger it ?

    Thread Starter usrobotx

    (@usrobotx)

    If you check any page with google lighthouse, you’ll see that Best Practices shows score of 92, because of 2 problems. Screen attached. https://imgur.com/gkKyoOW

    @usrobotx

    As said, you don’t have LiteSpeed web server, but you have cache enabled, that isn’t available with nginx. The cache plugin expects a specific kind of source when cache is enabled, but guest.vary.php isn’t available if there is no LiteSpeed webserver. Therefore WP redirects to a 404 not found URL that isn’t such source that cache plugin expects and this causes the error. Disable cache in plugin and we are all happy again or use quic.cloud if you don’t want to switch to hosting provider that offers LiteSpeed. With LiteSpeed or Quic.cloud your page will fly! Promised!

    Thread Starter usrobotx

    (@usrobotx)

    If I undestood correctly:

    • This problem happens because I am using bluehost hosting, and it has not enabled LiteSpeed.
    • If I move to another hosting (Quite an effort for me from the technical standpoint) – the site will become much faster, and the problem of 404 will be solved.
    • If I stay on the bluehost, I can disable a specific cache, so that all other performance improvements remain, only the one with 404 error will not be working (thus not causing problems).

    Am I right? Especially with the third point?

    If yes – which cache should I disable, in order to keep all other performance improvements and just solving 404?

    This problem happens because I am using bluehost hosting, and it has not enabled LiteSpeed.

    It is not because of bluehost hosting. It is because of wrong web server. If bluehost offers LiteSpeed web server use it or switch to another hosting provider that offers LiteSpeed.

    If I move to another hosting (Quite an effort for me from the technical standpoint) – the site will become much faster, and the problem of 404 will be solved.

    Yes and Yes. As said, your page will fly! 10 times faster, at least. You get LiteSpeed hosting at the same price as with your current hosting provider and you get a CDN for free. Check LiteSpeed specialised hosting partner next to your location:
    https://www.litespeedtech.com/partners/hosting-providers

    If I stay on the bluehost, I can disable a specific cache, so that all other performance improvements remain, only the one with 404 error will not be working (thus not causing problems).

    You can stay at bluehost, but you must disable caching to make this error disappear. You can still use some optimizations, but not all, because the most import optimizations needs the cache to work.

    Thread Starter usrobotx

    (@usrobotx)

    Hello,

    I googled a little bit, and I think now I understood. Bluehost has not enabpled LiteSpeed (At least for common, shared hosting that I am using).

    Thus, if I cannot disable a specific component of the cache causing the issue, I have to either

    • Stay with “LiteSpeed Cache” (Which I like very much) – but have that specific error, or
    • Stay with “LiteSpeed Cache”, but with caching disabled (it will not be like the performance that I liked), or
    • Move to another hosting, with support of LiteSpeed web server, or
    • Choose another caching plugin.

    Another plugin is not a solution because you would lose at least 50% speed. But as mentioned before, you don’t have to switch hosting providers and you can stay with Bluehost. With Quic.cloud, offered by LiteSpeed, you can take full advantage of the LScache plugin without having to switch to another hosting provider.

    And for the case you don’t know it, not optimizations make loading speed fast, it is the cache. Optimiziations are only to satisfy Google, but not the users.

    Thread Starter usrobotx

    (@usrobotx)

    So if I configure quic.cloud, I will not need to change hosting, and my problem will be solved?

    No, to use all advantages you must use quic.cloud as CDN to get cache and all other features, so you must register at quic.cloud and configure your host for the use with quic.cloud. Here are some Youtube videos that should explain everything:

    Select quic.cloud tab: https://www.litespeedtech.com/video-instructions

    and

    read quic.cloud FAQ:
    https://www.quic.cloud/

    Thread Starter usrobotx

    (@usrobotx)

    Ok, I see. At this point I will not be able to sort it out, I have just finished building the website and I want to launch it and then get back to further improvements. Unfortunately, CDN and changing the hosting do not seem as an options for me at this moment.

    As I understand, I have two options – either go on using LiteSpeed Cache (With great results), but knowing the errors it causes OR findind some other caching plugin that may not requried LiteSpeed web server (that my hosting does not support).

    In short, yes.

    Thread Starter usrobotx

    (@usrobotx)

    I see. Thank you very much for your detailed explanation. It seems a tough choice for a perfectionist person.

    No, by no means for perfectionists. This is standard and it’s only a matter of time before you have to delve deeper into the matter, because speed means better ranking. Do you want to do without a better ranking?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Problem – Browser errors were logged to the console’ is closed to new replies.