PHOENIX-MEDIA / Magento-PageCache-powered-by-Varnish

Community version which is available on Magento Connect (http://www.magentocommerce.com/magento-connect/pagecache-powered-by-varnish.html)
89 stars 49 forks source link

Retreiving formkeys via esi #29

Closed domeglic closed 9 years ago

domeglic commented 9 years ago

I am confused about how the form key integration via esi works. The formkeys are replaced with the esi tag that has a URL: "magento/varnishcache/getformkey". But I don't see any controller that would have this action, so how is it supposed to work? Am I missing some configuration?

pocallaghan commented 9 years ago

I was confused about the same thing originally. Upon investigation, if you look through the provided vcl files, they intercept requests for that route, and generate a random formkey in Varnish itself. This is obviously going to be more efficient than going back to the webserver.

domeglic commented 9 years ago

I see, thanks for the answer.