On 5/16/07, Joe Mun <[EMAIL PROTECTED]> wrote:
Hi guys... so according to the HTTP 1.1 spec (
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html), 304 Not Modified
responses must include the ETag in the header. However, Tomcat doesn't seem
to be adding it...
I am serving a static text file, and the header only returns:
HTTP/1.x 304 Not Modified
Server: Apache-Coyote/1.1
Date: Wed, etc...
I examined the header returned by Tomcat 6.0.10 with Firefox's
TamperData extension and also by uncommenting Tomcat's
RequestDumperValve.
You are right that the ETag header doesn't appear.
However, I saw another cache related header "if-none-match" , which
also shows a checksum in the same format as ETag , perhaps you may
find that header useful.
May 17, 2007 9:01:46 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=if-none-match=W/"6958-1163795820656"
I don't really know what causes the ETag to appear, I would expect it
to appear by default without any configuration similar to many other
HTTP Caching Headers.
I did notice the ETag for static files on one website that is hosted
on Apache httpd + Tomcat.
Is there a reason that the Etag is not being included? Is there a way to
configure Tomcat to include this? My company is working with a caching
solution provider, and they are complaining about the missing ETag.
thanks.
Regards
Rashmi
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]