]> granicus.if.org Git - apache/commitdiff
Hummm. not entirely sure if ap_meets_conditions() does everything we need it
authorBill Stoddard <stoddard@apache.org>
Wed, 5 Jun 2002 21:49:16 +0000 (21:49 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 5 Jun 2002 21:49:16 +0000 (21:49 +0000)
to do in a proxy cache... will study more later.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95533 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_cache.c

index 694546d5bbe4f776c89655ba327370caff62ce5d..e1a3bc205643cf734d8fb8e5b8953be59ab7dbc4 100644 (file)
@@ -207,6 +207,16 @@ static int cache_url_handler(request_rec *r, int lookup)
             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");