From nobody@hyperreal.com Mon Dec 9 12:58:37 1996 Received: by taz.hyperreal.com (8.8.3/V2.0) id MAA29746; Mon, 9 Dec 1996 12:58:37 -0800 (PST) Message-Id: <199612092058.MAA29746@taz.hyperreal.com> Date: Mon, 9 Dec 1996 12:58:37 -0800 (PST) From: Loren Schall Reply-To: schall@ateng.az.honeywell.com To: apbugs@hyperreal.com Subject: No `Last-Modified' header X-Send-Pr-Version: 3.2 >Number: 38 >Category: mod_include >Synopsis: No `Last-Modified' header >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Dec 9 13:00:01 1996 >Last-Modified: Thu Jan 23 15:09:51 PST 1997 >Originator: schall@ateng.az.honeywell.com >Organization: >Release: 1.2b1 >Environment: % uname -a SunOS swtech09 4.1.4 2 sun4m % gcc --version 2.7-96q3 >Description: Server parsed documents never have a `Last-Modified' header. If you run with `AddHandler server-parsed html', as I do, that means a `Last-Modified' header is never sent. >How-To-Repeat: any server parsed document >Fix: Patch follows *** mod_include.c.orig Sun Dec 1 13:29:05 1996 --- mod_include.c Sun Dec 8 12:45:13 1996 *************** *** 1665,1676 **** if (r->method_number != M_GET) return DECLINED; if (r->finfo.st_mode == 0) return NOT_FOUND; ! if (*state == xbithack_full #ifndef __EMX__ /* OS/2 dosen't support Groups. */ && (r->finfo.st_mode & S_IXGRP) #endif ! && (errstatus = set_last_modified (r, r->finfo.st_mtime))) return errstatus; if(!(f=pfopen(r->pool, r->filename, "r"))) { --- 1665,1676 ---- if (r->method_number != M_GET) return DECLINED; if (r->finfo.st_mode == 0) return NOT_FOUND; ! if ((*state == xbithack_full #ifndef __EMX__ /* OS/2 dosen't support Groups. */ && (r->finfo.st_mode & S_IXGRP) #endif ! ) || (errstatus = set_last_modified (r, r->finfo.st_mtime))) return errstatus; if(!(f=pfopen(r->pool, r->filename, "r"))) { %0 >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: fielding State-Changed-When: Thu Jan 23 15:09:50 PST 1997 State-Changed-Why: The server works as intended. Because server-side includes make it difficult to determine the actual last modified date of the content, the default is not to send any. Please see the documentation on the "XBitHack full" directive for a mechanism to override the default. >Unformatted: