httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_cache.c
Date Tue, 10 Feb 2004 17:50:43 GMT
clar        2004/02/10 09:50:43

  Modified:    modules/experimental mod_cache.c
  Log:
  adding 304 support for if-Modified-Since request header,
  if a fresh cached entity is present.
  
  Reviewed by: Paul J. Reder
  
  Revision  Changes    Path
  1.82      +7 -0      httpd-2.0/modules/experimental/mod_cache.c
  
  Index: mod_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_cache.c,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- mod_cache.c	9 Feb 2004 20:29:18 -0000	1.81
  +++ mod_cache.c	10 Feb 2004 17:50:43 -0000	1.82
  @@ -173,6 +173,13 @@
               if (lookup) {
                   return OK;
               }
  +
  +            info = &(cache->handle->cache_obj->info);
  +
  +            if (info && info->lastmod) {
  +                ap_update_mtime(r, info->lastmod);
  +            }
  +
               rv = ap_meets_conditions(r);
               if (rv != OK) {
                   ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
  
  
  

Mime
View raw message