httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <bri...@kheldar.apana.org.au>
Subject Re: cvs commit: apache-1.3/src/modules/standard mod_autoindex.c
Date Fri, 03 Nov 2000 16:11:51 GMT
On 3 Nov 2000 00:55:29 -0000, wrowe@locus.apache.org wrote:

>  Log:
>    Resolve mod_autoindex caching problems by returning the mtime as the
>    Last-Modified tag, and assigning the ETag.  Already applied to the
>    Apache 2.0 tree.
[...]
>  --- mod_autoindex.c	2000/02/02 20:44:01	1.114
>  +++ mod_autoindex.c	2000/11/03 00:55:28	1.115
>  @@ -1615,7 +1615,10 @@
>       }
>   
>       r->content_type = "text/html";
>  -
>  +    ap_update_mtime(r, r->finfo.st_mtime);
>  +    ap_set_last_modified(r);
>  +    ap_set_etag(r);

I believe this fix relies on a file system behaviour that is not universal,
that is the mtime of a directory is updated whenever a file in it is
modified. Of the file systems I have on my machine here (FAT, HPFS, JFS)
only JFS does this. I'll probably have to special case this on OS/2 as HPFS
is the most commonly used file system on it. JFS is only available on the
latest server version of OS/2, v4.5 aka "Warp Server for e-business".

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------


Mime
View raw message