-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi there!
When i use the Filedownload.save(...) method in my application using the MS IE an error occurs when i invoke the method a second time.
It works fine if i use another browser, but on IE it's working only once.
The error is a brwoser message popping up with content like
x.pdf could not be downloaded.
the internet site could not be opened...
i read somewhere setting a "no-cache" attribute in the http response header can help, but i don't get access to it. can anyone help?
finally i found an answer i guess.
Due to Link
IE version 6 - 8 cache internet sites automatically for any reason.
I built a filter (implementation of javax.servlet.Filter) in the web.xml, where i edited the response in the doFilter method like
HttpServletResponse httpResponse = (HttpServletResponse) response;
httpResponse.setHeader("Pragma", " ");
httpResponse.setHeader("Cache-Control"," ");
Now it works!
Asked: 2011-06-30 01:03:15 +0800
Seen: 489 times
Last updated: Aug 03 '11