Preconditions
1.Magento 2.3.4
2.Must Varnish Enable
Steps to reproduce
1)Do not add any product to the cart.
2)Directly go to https://www.sample.domain/checkout/
3)Because No product in cart Redirect user to Cart page https://www.sample.domain/checkout/cart
4)Add any product in the cart.
5)Go to Checkout.
6)It will redirect you to the cart page because of the caching of step 3 in varnish.
Expected result
1)Do not add any product to the cart.
2)Directly go to https://www.sample.domain/checkout/
3)Because No product in cart Redirect user to Cart page https://www.sample.domain/checkout/cart
4)Add any product in the cart.
5)Go to Checkout.
6)It should allow the user to go to the cart when the product is available.
Actual result
Because of Varnish, It cache steps 2 and 3 redirection and next time when users come with the product at that time also it not allowing the user to go to the checkout page. So it should stop track of that redirection by varnish.