Open
Description
Preconditions and environment
- Magento: 2.4.5
- Varnish: 7.3.0 (stores -> configuration -> advanced -> system -> full page cache (set to Varnish))
- Install sample data
- Luma theme
- I'm in developer mode so I can see the Varnish headers
Steps to reproduce
- Visit the storefront home page (in my case https://magento.test).
- Click the sign-in link in the top right.
- Sign-in with the sample data customer ([email protected] / [email protected])
- After being redirected back to the home page, you'll see the welcome message / dropdown in the top right. Click the dropdown arrow and sign-out.
- You'll be redirected to the logoutSuccess page (note that the top bar in the header correctly shows the default welcome msg as well as the sign-in/create account links)
- Once you are redirected to the home page, the top bar makes it look like you're still signed in. It shows the welcome message with a dropdown to view your account, wishlist, and log out. The sign-in/create account links are not visible.
- Refresh the page to get the top bar to properly show the guest links.
Expected result
When Varnish cache is enabled, the top bar links should still properly reflect whether the customer is logged in/out.
Actual result
You have to refresh the page after the logout redirect to get the top bar links to properly reflect whether you're logged in/out.
Additional information
I've only been able to reproduce this when Varnish is enabled. If I switch the full page cache setting to the built-in cache, everything works as it should.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.