httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-1.3/src/modules/standard mod_autoindex.c
Date Fri, 03 Nov 2000 00:55:29 GMT
wrowe       00/11/02 16:55:28

  Modified:    .        STATUS
               src      CHANGES
               src/modules/standard mod_autoindex.c
  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.
  
  Revision  Changes    Path
  1.856     +1 -7      apache-1.3/STATUS
  
  Index: STATUS
  ===================================================================
  RCS file: /home/cvs/apache-1.3/STATUS,v
  retrieving revision 1.855
  retrieving revision 1.856
  diff -u -r1.855 -r1.856
  --- STATUS	2000/11/03 00:44:01	1.855
  +++ STATUS	2000/11/03 00:55:25	1.856
  @@ -1,5 +1,5 @@
     1.3 STATUS:
  -  Last modified at [$Date: 2000/11/03 00:44:01 $]
  +  Last modified at [$Date: 2000/11/03 00:55:25 $]
   
   Release:
   
  @@ -41,12 +41,6 @@
         and over again once they return a 'fatal' error (e.g. volume
         full, bad args, etc.)
           Status: Victor Orlikowski is working up a patch
  -
  -    * mod_autoindex results return no timestamp, so they are cached
  -      past their legitimate lifetime.  Patch to add ETag and 
  -      Last Modified based on directory mtime posted to new-httpd
  -      Message ID <001f01c0441e$b719c180$93c0b0d0@covalentwrowe1>
  -	Status:
   
       * long pathnames with many components and no AllowOverride None
         Workaround is to define <Directory /> with AllowOverride None,
  
  
  
  1.1593    +4 -0      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.1592
  retrieving revision 1.1593
  diff -u -r1.1592 -r1.1593
  --- CHANGES	2000/11/03 00:44:00	1.1592
  +++ CHANGES	2000/11/03 00:55:27	1.1593
  @@ -1,5 +1,9 @@
   Changes with Apache 1.3.15
   
  +  *) Eliminate caching problems of mod_autoindex results, so the last
  +     modified date of the directory is returned as the Last-Modified 
  +     tag, and an appropriate ETag is sent. [William Rowe]
  +
     *) Corrected file path arguments from server conf directives to
        their canonical form (excluding OS2 - which uses alternate 
        logic.)  Resolves a long list of PRs reporting that Win32 paths
  
  
  
  1.115     +4 -1      apache-1.3/src/modules/standard/mod_autoindex.c
  
  Index: mod_autoindex.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_autoindex.c,v
  retrieving revision 1.114
  retrieving revision 1.115
  diff -u -r1.114 -r1.115
  --- 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);
  +    
       ap_send_http_header(r);
   
       if (r->header_only) {
  
  
  

Mime
View raw message