Seems to me that the problem is with the means you are using to send us the
file.  Can you show us that code?

-Jake

----- Original Message -----
From: "Prashanth Pushpagiri" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 12:31 PM
Subject: [OT] Caching problems with IE after download


> Hi everyone:
>
> This is more related to Java than tomcat i guess! But
> any input would be greatly appreciated. This is a
> question that has been around for a while now...I
> tried looking up the forums on Sun's website...but
> could not really find a solution to solve my
> problem...so here goes...
>
> I have implemented a file download bean which sends
> out binary data to the browser. The bean is
> instantiated by a JSP page. To make sure browsers
> don't cache response I do:
>
> response.setHeader("Cache-Control", "no-cache");
> response.setHeader("Pragma", "no-cache");
> response.setDateHeader("max-age", 0);
> response.setDateHeader("Expires", 0);
>
> while sending out the file and on every other JSP page
> on the site. However, for some reason the JSP page
> accessed immediately after downloading a file contains
> portions of a binary stream on the top of the page
> followed by HTML. I am confident the server is not
> resending the data again...(confirmed it with ethereal
> and nescape works too)...so I dont know what I am
> doing wrong...or what I should do to get it
> right...Any suggestions ot opinions on this?
>
> Note that the headers work perfectly fine while
> navigating through JSP pages.
>
> Thanks
> Prashanth
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to