You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@apache.org on 2002/06/05 23:49:16 UTC
cvs commit: httpd-2.0/modules/experimental mod_cache.c
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");