Originally posted by ying lam: I use Tomcat to server a static image (i put the image in the 'images' under WEB-INF directory).
If you are trying for a Trace command on a servet , then this would have been a easy task ,you could just override the doTrace method and construct the response yourself. As you are trying to achieve on a image ,then I guess the Trace response is generated by the Cytoe connector.In that case you have to make your own connector and plug it into Tomcat Or, extend the Cyote connector and override the method that is generating the Trace response.
Are you sure that Tomcat is adding the ETag? I just checked my copy and don't see them.
The Last-Modified header is part of the HTTP/1.1 spec. I doubt you will find an easy way to disable that without writing something yourself. I don't think it would be difficult to write a servlet filter that does this.