Hello. I have a website https://varta.ua and I see a strange bug.
- I enter the home page. On the top I see “Register” and “Login” links, I am unauthorized
- I go to the login page and login
- I got redirected back to the home page. The problem is that I still see “Login” and “Register” button in the header instead of “Hello username” text. I have a feeling that I didn’t get in and I am still unauthorized.
- If I refresh the page - everything gets ok, I see that I am authorized in the header.
So, what’s hapenning? Users think their login was wrong, however it was ok, just the text on the header is cached and wrong.
If I look in headers I see:
expires: now + 10 minutes
I don’t have any Cloudflare application installed. How can I disable that cache to prevent this bug? Thanks.