User is shown logged out on cached pages

Hi,

I am facing this strange issue that when I login to any page which is already cached, I don’t see myself logged in to site. But when I refresh the page it shows me logged in.

Please look into this issue.

Thanks,
Ritesh

There’s not much we can do, as it’s your site and your settings. It sounds like you’re using Cache Everything, which is risky when it comes to pages which require login.

If you post the URL of that page, we can take a look at the response headers for anything that may be causing this.

If you’re on the business plan you can enable bypass cache on cookie.

2 Likes

Hi,

I am not using any cache plugin. I am using default cloudflare’ cache. When I disable cloudflare, it’s working fine . Again, on enabling cloudflare, I am seeing user is not able to login on already visited page. Although on page refresh, user sees logged in. Here is the url you can look at:
https://staging.enlightguru.com

Thanks,
Ritesh

Post a screenshot of your page rules.

Hi,
Here is the pagerule:

Thanks,
Ritesh

You need to remove (or adjust) page rule #3.

1 Like

Thank you Sandro for the advice and it solved my problem!

Regards,
Ritesh

This topic was automatically closed after 30 days. New replies are no longer allowed.