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: mod_autoindex and caching
Date Mon, 20 Oct 1997 15:38:46 GMT
On Mon, 20 Oct 1997 08:18:20 -0600 (MDT), Marc Slemko wrote:

>On Mon, 20 Oct 1997, Brian Behlendorf wrote:
>
>> At 05:48 PM 10/19/97 -0600, Marc Slemko wrote:
>> >Getting hit by mirrors 8x for each directory index every x hours isn't
>> >nice.
>> 
>> Adding support for SuppressColumnSorting sounds fine to me.
>> 
>> Are directory indexes uncacheable?  Seems to me one could do a stat() on
>> the directory itself and if it hadn't changed, then return a 304...
>
>I was thinking the same thing; in fact, I mentioned the same thing a few
>lines down in the message you replied to.
>
>I'm thinking that adding last-modified code would be useful.  I think it
>should be valid on all Unix systems.
>
>No comment on that Windows stuff or OS/2...

stat()ing . wouldn't work on OS/2. I would suggest using the date/time of the
newest entry in the directory. Obviously a bit slower though as a full
directory scan would be needed, but still better than serving the request
again as that also requires a full directory scan.



--
 ______________________________________________________________________________
 |  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