This project is archived and is in readonly mode.

#1578 ✓committed
Hongli Lai

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

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

Pages