PDF files are being cached in my browser

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