cancel
Showing results for 
Search instead for 
Did you mean: 

Problem exporting to CSV while using Cloudflare from Magento 1

Problem exporting to CSV while using Cloudflare from Magento 1

On a Magento 19.1.1 site, we've been using Magento's Export to CSV capability to download reports and ad hoc queries on Sales, Customers, Shipments, etc. Since implementing Cloudflare, whenever we try it it fails.

 

Chrome gives a "Failed - Network error" message.

Firefox gives a popup saying: C:\Users\Neil\AppData\Local\Temp\6qG5S59W.csv.part could not be saved, because the source file could not be read. Try again later, or contact the server administrator.

 

Cloudflare have said:
we believe that the problem comes from a wrong value Content-Length header returned with compressed content. ... The solution here would be to fix the way Magento handles content-length when gzip is requested (Cloudflare always requests gzip).

 

Can anyone point me in the right direction to fixing the way Magento handles content-length for gzip?

Thanks.

1 REPLY 1

Re: Problem exporting to CSV while using Cloudflare from Magento 1

Hi,

 

I doesn't recommend using CDN Cloadflare in Magento admin, because you will have cross origin problems with editing CMS pages.

Please use CDN only in website scope, not in global scope.

 

Best regards,