Etag not being added to a large web page

I have a large text web page (458K uncompressed) that Apache2.2 should be adding an ETag to however it's not.  All other pages on the site are being given an ETag but not this one.  What do I need to do to fix this?

http://www.t1shopper.com/tools/port-scan/port-number-assignments.shtml

---== Apache config ===--
FileETag All
ExpiresActive On
ExpiresDefault "access plus 180 days"

Note: Most other pages also have the "Content-Length" header set but Apache seems to be excluding it for this page (which according to the HTTP spec is ok).
---=== Current Request & Response headers ===---
http://www.t1shopper.com/tools/port-scan/port-number-assignments.shtml

GET /tools/port-scan/port-number-assignments.shtml HTTP/1.1
Host: www.t1shopper.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.t1shopper.com/tools/port-scan/
Pragma: no-cache
Cache-Control: no-cache

HTTP/1.x 200 OK
Date: Mon, 04 Jan 2010 19:40:57 GMT
Server: Apache
Accept-Ranges: bytes
Cache-Control: max-age=15552000
Expires: Sat, 03 Jul 2010 19:40:57 GMT
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Keep-Alive: timeout=3, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

Open in new window

Geoff MillikanAsked:
Who is Participating?
 
Geoff MillikanAuthor Commented:
Seems I've stumped all the experts!  :-)

Ok, I'll help you out a bit: I discovered that the ETag isn't being set on any files that have INCLUDES in them like this web page called "test.shtml" isn't being given an ETag.  I've searched and searched and there's no reason that having INCLUDE's should screw up Apache's core FileETag directive!!

---== test.shtml ==---
<html><body>
<!--#include virtual="/ssi/footer-master.shtml" -->
</body></html>

---== Apache httpd.config ==---
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

---== Background ==---
http://httpd.apache.org/docs/2.2/mod/core.html#fileetag

0
 
Geoff MillikanAuthor Commented:
No, didn't see that, I hope it's not true because there really needs to be some way of getting an ETag on dynamic content.

Seems like all content would want to be ETag'ed - especially dynamic content since it's the most expensive to serve and usually the largest to deliver. I've been reading though the Apache user group and there's a lot of people that want to add ETag to dynamically generated pages.  
http://httpd.markmail.org/search/?q=etag

I'm so surprised that the Apache documentation doesn't indicate any such ETag limitations and it appears as though it's not supported.

Enough ranting.
0
 
Geoff MillikanAuthor Commented:
FYI - Apache docs have been updated as a result of this thread, "Server Side Includes: An ETag is not generated for responses parsed by mod_include, since the response entity can change without a change of the INode, MTime, or Size of the static file with embedded SSI directives."

http://httpd.apache.org/docs/2.2/mod/core.html#fileetag

http://httpd.markmail.org/search/?q=etag#query:etag+page:1+mid:5h57rxv7nzxrnnua+state:results
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.