Hi,
I am generating PDF files and sending them with send_data, like this:
def myaction
if request.env[''HTTP_USER_AGENT''] =~ /msie/i
headers[''Pragma''] = ''''
headers[''Cache-Control''] = ''''
headers["Expires"] = "-1"
else
headers[''Pragma''] = ''no-cache''
headers[''Cache-Control''] = ''no-cache,
must-revalidate''
headers["Expires"] = "0"
end
send_data pdf_data, :filename => "myfile.pdf", :type =>
"application/pdf"
end
However - they still get cached in the browser. What more must I do for
that not to happen?
Does anybody no - I''m getting desparate.
Thanks
Joerg
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---