From a6466463c7374ba0cda7340d6ba0916449c1478c Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Wed, 5 Jun 2002 21:49:16 +0000 Subject: [PATCH] Hummm. not entirely sure if ap_meets_conditions() does everything we need it 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/experimental/mod_cache.c b/modules/experimental/mod_cache.c index 694546d5bb..e1a3bc2056 100644 --- a/modules/experimental/mod_cache.c +++ b/modules/experimental/mod_cache.c @@ -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"); -- 2.40.0