This project is archived and is in readonly mode.
send_file(..., :xsendfile => true) sets ETag though it shouldn't
Reported by Hongli Lai | December 15th, 2008 @ 07:58 PM | in 2.x
send_file(..., :xsendfile => true) sets the ETag header to "7215ee9c7d9dc229d2921a40e899ec5f", regardless of which file is being sent. It should either set a proper ETag, or not set one at all. The latter is probably better for performance reasons.
Note that send_file(..., :xsendfile => false) doesn't set an ETag, as it should.
Comments and changes to this ticket
-
Repository December 16th, 2008 @ 11:30 AM
- State changed from new to committed
(from [9e2b4a10f7f091868b3c3701efb4c04048455706]) Do not output an ETag header if response body is blank or when sending files with send_file(... :xsendfile => true) [#1578 state:committed]
Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 1578 send_file(..., :xsendfile => true) sets ETag though it shouldn't (from [9e2b4a10f7f091868b3c3701efb4c04048455706]) Do not ...