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

generate pdf invoice 503 error #18

Open ed29 opened 11 years ago

ed29 commented 11 years ago

A bug to fix:When create pdf invoice at magento's backend,it will get 503 error,reference to:https://www.varnish-cache.org/forum/topic/419

add these code:

if ( req.url ~ "._/admin/sales_orderinvoice/print/." ) { set req.http.connection = "close"; return (pipe); }

to varnnish vcl file vcl_recv will works fine.Thank you for this project,good job!