httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_cache.c
Date Wed, 04 Aug 2004 02:35:07 GMT
stoddard    2004/08/03 19:35:07

  Modified:    modules/experimental Tag: APACHE_2_0_BRANCH mod_cache.c
  Log:
  adding 304 support for if-Modified-Since request header, if a fresh cached entity is present.
backport from 2.1
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.64.2.12 +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.64.2.11
  retrieving revision 1.64.2.12
  diff -u -r1.64.2.11 -r1.64.2.12
  --- mod_cache.c	9 Feb 2004 20:53:16 -0000	1.64.2.11
  +++ mod_cache.c	4 Aug 2004 02:35:07 -0000	1.64.2.12
  @@ -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