You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by cl...@apache.org on 2004/02/10 18:50:43 UTC

cvs commit: httpd-2.0/modules/experimental mod_cache.c

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,