• Resolved brianbelley

    (@brianbelley)


    Hello,

    I’ve recently migrated two completely separate/different WordPress sites to Openlitespeed webservers and am running with Litespeed Cache for WordPress.

    The issue: I’ve noticed that when I enabled “Guest Mode” in LS Cache (whether or not “Guest Mode Optimization” is also enabled), my websites will each go into a type of infinite redirect/refresh loop. For example, the page loads, but I see all the pictures and page being refreshed more than once a second.

    Turning Guest Mode/Optimization “OFF” and flushing Litespeed cache seems to immediately resolve the issue.

    I tried inspecting the Network tab stats to see if there were any 301 or other redirects causing this, but didn’t see any (it was also hard to grab since it refreshes so quickly). It seems to be triggering a page refresh based on something else.

    This happens on both WordPress websites, which are running completely different themes and plugins (everything up to date). And the issue goes away as soon as I remove “Guest Mode” – but I would like to use it. More importantly, I’d like to understand what might be causing this.

    Lastly, I tried this both with SSL termination (via Lightsail Cloudfront) and with end-to-end encryption, just to ensure that it wasn’t something where the server was trying to redirect an HTTP request to HTTPs – but either way, the infinite refresh loop happens.

    Here are more details. Has anyone seen anything like this before?

    Web server: OpenLiteSpeed 1.7.18 server running latest version of WordPress and latest Litespeed Cache plugin
    -Server: AWS Lightsail Instances with Ubuntu 22.04 running lsphp82
    -CDN: Also configured AWS Lightsail using Lightsail Distributions (i.e. Cloudfront) with SSL installed for the Distribution and on the origin servers (tried it both ways)
    -Caching settings: running the latest version of Redis Object cache, “advanced” presets in LS Cache, Guest Mode and Guest Optimization “on”

    Since it basically locks up my site with dozens of requests a second, I have this disabled and don’t have a site to show it on. But I’m working on getting it set up on a staging site so you can see the issue replicated.

    • This topic was modified 11 months, 1 week ago by brianbelley.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter brianbelley

    (@brianbelley)

    I should also note – this only happens on Incognito windows. i.e. If I’m already logged in to my site, the infinite refresh loop does not occur. Which further leads me to believe it is indeed something caused by the “Guest Mode” setting.

    Plugin Support qtwrk

    (@qtwrk)

    it looks like you have another cache layer in place, please disable that , otherwise guest mode will break

    Thread Starter brianbelley

    (@brianbelley)

    By “another cache layer” – are you referring to Redis object caching, which is also part of the LS Cache plugin?

    Or the CDN delivery via Cloudfront? Or something else?

    I figured those would be OK as they are also part of the LS Cache plugin. If they aren’t compatible, it might be helpful to add this to the documentation (or please forgive me if it’s in there and I missed it).

    Plugin Support qtwrk

    (@qtwrk)

    looks like cloudfront, you should not use cloudfront to cache pages , but only static resources like JS, CSS IMG

    • This reply was modified 11 months, 1 week ago by qtwrk.
    Thread Starter brianbelley

    (@brianbelley)

    Got it – thank you for your assistance. I didn’t realize Cloudfront was caching the entire page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Guest Mode Causes Infinite Refresh Loop’ is closed to new replies.