Lines 1427-1451
Link Here
|
1427 |
h.bb = b2; |
1427 |
h.bb = b2; |
1428 |
|
1428 |
|
1429 |
if (r->status == HTTP_NOT_MODIFIED) { |
1429 |
if (r->status == HTTP_NOT_MODIFIED) { |
1430 |
apr_table_do((int (*)(void *, const char *, const char *)) form_header_field, |
1430 |
/* |
1431 |
(void *) &h, r->headers_out, |
1431 |
* List of headers that must not be updated on a 304 (or 206 partial content) |
1432 |
"Connection", |
1432 |
* https://tools.ietf.org/id/draft-ietf-httpbis-cache-08.txt |
1433 |
"Keep-Alive", |
1433 |
*/ |
1434 |
"ETag", |
1434 |
apr_table_unset(r->headers_out, "Content_Encoding"); |
1435 |
"Content-Location", |
1435 |
apr_table_unset(r->headers_out, "Content_Length"); |
1436 |
"Expires", |
1436 |
apr_table_unset(r->headers_out, "Content_MD5"); |
1437 |
"Cache-Control", |
1437 |
apr_table_unset(r->headers_out, "Content_Range"); |
1438 |
"Vary", |
1438 |
apr_table_unset(r->headers_out, "ETag"); |
1439 |
"Warning", |
1439 |
apr_table_unset(r->headers_out, "TE"); |
1440 |
"WWW-Authenticate", |
1440 |
apr_table_unset(r->headers_out, "Trailer"); |
1441 |
"Proxy-Authenticate", |
1441 |
apr_table_unset(r->headers_out, "Transfer_Encoding"); |
1442 |
"Set-Cookie", |
1442 |
apr_table_unset(r->headers_out, "Upgrade"); |
1443 |
"Set-Cookie2", |
|
|
1444 |
NULL); |
1445 |
} |
1443 |
} |
1446 |
else { |
1444 |
send_all_header_fields(&h, r); |
1447 |
send_all_header_fields(&h, r); |
|
|
1448 |
} |
1449 |
|
1445 |
|
1450 |
terminate_header(b2); |
1446 |
terminate_header(b2); |
1451 |
|
1447 |
|