Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 54651 invoked by uid 500); 5 Jun 2002 21:49:17 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 54640 invoked by uid 500); 5 Jun 2002 21:49:17 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 5 Jun 2002 21:49:16 -0000 Message-ID: <20020605214916.43055.qmail@icarus.apache.org> From: stoddard@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/modules/experimental mod_cache.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N stoddard 2002/06/05 14:49:16 Modified: modules/experimental mod_cache.c Log: Hummm. not entirely sure if ap_meets_conditions() does everything we need it to do in a proxy cache... will study more later. Revision Changes Path 1.44 +10 -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.43 retrieving revision 1.44 diff -u -r1.43 -r1.44 --- mod_cache.c 5 Jun 2002 03:45:13 -0000 1.43 +++ mod_cache.c 5 Jun 2002 21:49:16 -0000 1.44 @@ -207,6 +207,16 @@ if (lookup) { return OK; } + rv = ap_meets_conditions(r); + if (rv != OK) { + ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, + "cache: fresh cache - returning status %d", rv); + return rv; + } + + /* + * Not a conditionl request. Serve up the content + */ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, "cache: fresh cache - add cache_out filter and " "handle request");