* 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. */
| 1250 | * ensure there is a content type and capture any errors. |
| 1251 | */ |
| 1252 | CACHE_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 | |
| 1267 | apr_table_t *cache_merge_headers_out(request_rec *r) |
| 1268 | { |
no test coverage detected