Under Tomcat 5.0.25, I've got a web-app creating a file on-the-fly. I've got the servlet "surrounded" by the following security constraint:
------------------------------------------
<security-constraint>
<web-resource-collection>
<url-pattern>/registration/file.xls</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>20040490</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
------------------------------------------



Without the security constraint, IE (6.0) can save the file just fine. With the constraint, IE gags with the error "the file could not be written to cache." I noticed that Tomcat was adding these items to the HTTP response:
| 20041207220031203043 | contentLength | -1
| 20041207220031203043 | contentType | application/vnd.ms-excel
| 20041207220031203043 | hdr.Cache-Control[0] | no-cache
| 20041207220031203043 | hdr.Content-Type[0] | application/vnd.ms-excel
| 20041207220031203043 | hdr.Date[0] | Wed, 08 Dec 2004 03:00:31 GMT
| 20041207220031203043 | hdr.Expires[0] | Wed, 31 Dec 1969 19:00:00 EST
| 20041207220031203043 | hdr.Pragma[0] | No-cache
| 20041207220031203043 | hdr.Server[0] | Apache-Coyote/1.1
| 20041207220031203043 | hdr.Transfer-Encoding[0] | chunked
| 20041207220031203043 | status | 200


How can one get IE to download a file, over a HTTPs connection without having to strip the "no-cache" headers? Is there a way or will I have to filter the no-cache headers?






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



Reply via email to