MCPcopy Create free account
hub / github.com/apache/httpd / ap_cache_cacheable_headers_out

Function ap_cache_cacheable_headers_out

modules/cache/cache_util.c:1252–1265  ·  view source on GitHub ↗

* Create a new table consisting of those elements from an output * headers table that are allowed to be stored in a cache; * ensure there is a content type and capture any errors. */

Source from the content-addressed store, hash-verified

1250 * ensure there is a content type and capture any errors.
1251 */
1252CACHE_DECLARE(apr_table_t *)ap_cache_cacheable_headers_out(request_rec *r)
1253{
1254 apr_table_t *headers_out;
1255
1256 headers_out = ap_cache_cacheable_headers(r->pool,
1257 cache_merge_headers_out(r),
1258 r->server);
1259
1260 cache_control_remove(r,
1261 cache_table_getm(r->pool, headers_out, "Cache-Control"),
1262 headers_out);
1263
1264 return headers_out;
1265}
1266
1267apr_table_t *cache_merge_headers_out(request_rec *r)
1268{

Callers 3

store_headersFunction · 0.85
store_headersFunction · 0.85
mod_cache.hFile · 0.85

Calls 4

cache_merge_headers_outFunction · 0.85
cache_control_removeFunction · 0.85
cache_table_getmFunction · 0.85

Tested by

no test coverage detected