I wish to display the size of the file to the client when they download it.
But HTTP Header Content-Length not work.
My Environment is follow.
- Apache 2.2
- mod_deflate
- Rails3.2
A download file is in the rails project public folder.
Response Header is this when I download it.
Accept-Ranges bytes
Access-Control-Allow-Head... origin, x-requested-with, content-type
Access-Control-Allow-Meth... PUT, GET, POST, DELETE, OPTIONS
Access-Control-Allow-Orig... http://*.com
Connection Keep-Alive
Content-Encoding gzip
Content-Type application/octet-stream
Date Fri, 14 Dec 2012 05:15:09 GMT
Etag "c1bcc-1c828800-4d0a3ac0f7389"
Keep-Alive timeout=5, max=100
Last-Modified Wed, 12 Dec 2012 08:34:51 GMT
Server Apache
Transfer-Encoding chunked
Vary Accept-Encoding
Is there any way to display the Content-Length?