dcsimg
MIME types of the files residing within a security realm!_NEWLINE_!do<br>not seem to properly return to the Internet Explorer.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Masaki_Koyama
Posted On:   Sunday, June 23, 2002 04:02 AM

For Tomcat4.0, I made the security zone(directoriers) using JDBC realm.When accessing the files in that zone by the Internet Explorer, MIME types of the embedded gif and jpeg files are not recognized by the browser.The property of those filed are always bitmap (and 'unusable') and thus those files can not be cashed to the Temporary Internet Files directory. Looking at the log files, Tomcat4.0 always return 200 code with the bit stream of the file.This means the browser can not understand the MIME type the server sent.If once security realm released,then the browser recognizes the Mime type and thus it caches.If again creating the security realm makes the browser send t   More>>
			
For Tomcat4.0, I made the security zone(directoriers) using
JDBC realm.When accessing the files in that zone by the
Internet Explorer, MIME types of the embedded gif and jpeg
files are not recognized by the browser.The property of those
filed are always bitmap (and 'unusable') and thus those files
can not be cashed to the Temporary Internet Files directory.

Looking at the log files, Tomcat4.0 always return 200 code
with the bit stream of the file.This means the browser can
not understand the MIME type the server sent.If once security
realm released,then the browser recognizes the Mime type and
thus it caches.If again creating the security realm makes the
browser send the information of the cash to the server. Thus,
the server returns 304 code to the browser and thus it recognizes
MIME type.

There is no such problem in Netscape and there is no such
problem for Tomcat3.0,too.

Looking forward to seeing someone's reply, hopefully to my
E-mail address koyama@itc.aist-nara.ac.jp.Thanks in advance.
   <<Less

Re: MIME types of the files residing within a security realm!_NEWLINE_!do<br>not seem to properly return to the Internet Explorer.

Posted By:   Masaki_Koyama  
Posted On:   Monday, June 24, 2002 06:51 PM


I got the reply from bugzilla as follows:

This has nothing to do with MIME types. The browser
doesn't cache items here,because Tomcat tells it they are
not cacheable, for security reasons. The MIME types are
still correctly set.


OK but if all the files within the security realm can not
be cached by the browser,this security realm is very
difficult to use practically .That is, the closed user
groups must get all the files from the Tomcat at
everytime, resulting in the very slow completion of the
web pages.

I recommend the security realm of Tomcat4.0 will have the
same policy of Tomcat3.x, so that the files within the
realm be cached by the browser.


Thanks bugzilla anyway.
About | Sitemap | Contact