mirror of
https://github.com/apache/httpd.git
synced 2025-11-06 16:49:32 +03:00
mod_cache: Give the cache provider the opportunity to choose to cache
or not cache based on the buckets present in the brigade, such as the presence of a FILE bucket. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@999630 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
2
modules/cache/mod_cache.c
vendored
2
modules/cache/mod_cache.c
vendored
@@ -1004,7 +1004,7 @@ static int cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
|
||||
|
||||
/* no cache handle, create a new entity only for non-HEAD requests */
|
||||
if (!cache->handle && !r->header_only) {
|
||||
rv = cache_create_entity(r, size);
|
||||
rv = cache_create_entity(r, size, in);
|
||||
info = apr_pcalloc(r->pool, sizeof(cache_info));
|
||||
/* We only set info->status upon the initial creation. */
|
||||
info->status = r->status;
|
||||
|
||||
Reference in New Issue
Block a user