From: Gilles D. <gr...@sc...> - 2002-01-12 22:39:02
|
According to Greg Lepore: > If the last modified date is included in the document via: > <!--#echo var="LAST_MODIFIED"--> > should HTDIG be using this as the last modified date for a re-index? It > appears so according to: > http://www.htdig.org/mail/2000/10/0038.html > but does not appear to be the case in 3.2 (1/6 build). I believe in that thread, Torsten was suggesting 3 different SSI techniques to get the Last-Modified header out. If this one doesn't work, maybe try the other two, or try them in combination. I don't know if any of these are specific to particular versions of Apache or other web servers, so you should probably look at the documentation for the server you're using. Also, I believe we had concluded in that thread that any SSI tag intended to generate an HTTP header MUST be at the very start of the document, before any HTML that will be output. As Geoff suggested, some verbose output from htdig may be helpful. > The sysadmin wants to avoid XBitHack as a workaround and can't figure out > any other way to add Last-Modified to the http headers. I know this > questions was discussed in detail last year but I was unable to find a > solution. SSI is the reason the Last-Modified is not being included in the > http headers and that cannot be changed. > System is RedHat 7.2 on Intel, tons o' ram and ghz. Thanks, All the XBitHack does is enable SSI on .html files that have the execute bit turned on, treating them as .shtml files. If you're needing to use SSI tags to get the Last-Modified header to be output, presumably it's because the files are already server-parsed, so I don't see what the XBitHack would get you. If the files aren't server parsed, you should be getting the header based on the "mtime" of the file. If the files are server parsed, but not SSI, then it must be something else like ASP, JSP, PHP, or some other pre-processor, so you'd need to use whatever trick that pre-processor allows for getting the header out. -- Gilles R. Detillieux E-mail: <gr...@sc...> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 |