--- cache_util_old.c 2006-08-10 15:01:03.000000000 -0500 +++ cache_util.c 2006-08-10 15:00:52.000000000 -0500 @@ -34,6 +34,13 @@ if (!url.hostname) { return 0; } + /* The following allows caching of forward proxy when only a protocol is specified. + * For example: if you want to cache all forward proxy http requests you would specify + * 'CacheEnable disk http://'. The apache code as is, will do a strcasecmp on the + * filter hostname ('') and the url. This will always fail. So lets handle the + * special case where you configure just a protocol (no host) + */ + else if ( '\0' == filter.hostname[0] ){ /* meets the condition */} /* ryan.pendergast gmail add */ else if (strcasecmp(filter.hostname, url.hostname)) { return 0; }