Thursday, February 10, 2011

[Rails] Re: send_file works on Rails2,SSL - except for IE7/6

Joel, that link is for a client-side solution to a server side problem.
And as it turns out, that header isn't the problem here.


The actual solution is in Apache you must add a line to the relevant
conf file:
Header unset Vary

Since Apache for some reason keeps adding (even overwriting values
coming from Rails) so Vary comes across as:
Vary: User-Agent, Accept-Encoding

With that in place Vary doesn't come across anymore and IE6 and IE7
download from a redirect link as they should.


cheers!

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate