huguesalary / Magento-Varnish

This Magento extension provides a Real Full Page Caching for Magento powered by Varnish with support of Session-Based information caching (Cart, Customer Accounts, ...) via ESI includes
Other
95 stars 18 forks source link

404 error from static assets returning with set-cookie #16

Open danelowe opened 11 years ago

danelowe commented 11 years ago

From observation so far; if a static assets (e.g. image) is not available, the VCL will ensure the cookie is removed from the request, but Magento will render a 404, which will include the set-cooke header. The frontend cookie will have a different session id since it was removed from the request.

The outcome is that the session id changes between requests if there is a 404 response from magento.