Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Prevent the kernel response listener for cart from continuing when the session is not actually started. #9095
Prevent the kernel response listener for cart from continuing when the session is not actually started. Otherwise the next
A problem caused by this issue is that the following cache-control header being sent to client anyway: (because a session is started, the Symfony session listener would set that header)
For landing pages without cart, or some shop API calls need to be cached from the CDN layer, we don't want the above cache-control header being set.
BTW, by fixing the issue and installing friendsofsymfony/http-cache-bundle I managed to enable the CDN cache for some shop API calls. Otherwise, the http-cache-bundle would work as expected.