How to served cached page when magento sends back frontend cookie
I've managed to setup varnish and magento and they are working quite nicely together, however when magento sends back a frontend cookie, which is every page except the home page, it's not hitting the cache
Set-Cookie:frontend=lm45mabgrqphfuvbbdbjume127; expires=Fri, 14-Dec-2012 02:32:37 GMT; path=/;
Is there a way to either turn off the magento frontend cookie for users that aren't using the cart, or is there a rule I could put into the default.vcl file that would allow varnish to served a cache page regardless of this cookie ?
appreciate any help :)
Make sure that you install the PageCache powered by Varnish module for Magento. This magento module includes a default.vcl (Varnish configuration file) that takes care of this. All cookies and other info are stripped until a user adds a product to his cart or logs in into his account. This will allow the page to be served from Varnish and the request will never reach apache.
Let me know if you need any more help.
链接地址: http://www.djcxy.com/p/62426.html上一篇: 没有通过curl远程登录工作cookie