--------------------- PatchSet 1360 Date: 2005/05/11 16:32:22 Author: nlewycky Branch: prefetching Tag: (none) Log: Be a bit smarter about what HTTP Headers we copy from fetch to prefetch. Set the prefetches to avoid keep-alive connections, knowing we only use each once. Members: src/PrefetchStream.cc:1.1.2.7->1.1.2.8 Index: squid3/src/PrefetchStream.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/Attic/PrefetchStream.cc,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -u -r1.1.2.7 -r1.1.2.8 --- squid3/src/PrefetchStream.cc 5 May 2005 18:24:15 -0000 1.1.2.7 +++ squid3/src/PrefetchStream.cc 11 May 2005 16:32:22 -0000 1.1.2.8 @@ -1,6 +1,6 @@ /* - * $Id: PrefetchStream.cc,v 1.1.2.7 2005/05/05 18:24:15 nlewycky Exp $ + * $Id: PrefetchStream.cc,v 1.1.2.8 2005/05/11 16:32:22 nlewycky Exp $ * * DEBUG: section 93 HTML parsing and fetching * AUTHOR: Nick Lewycky @@ -109,9 +109,17 @@ tempheaders.update(&request->header, NULL); tempheaders.removeConnectionHeaderEntries(); httpHeaderDelById(&tempheaders, HDR_ACCEPT_RANGES); + httpHeaderDelById(&tempheaders, HDR_AGE); httpHeaderDelById(&tempheaders, HDR_ETAG); httpHeaderDelById(&tempheaders, HDR_CONTENT_LENGTH); httpHeaderDelById(&tempheaders, HDR_CONTENT_MD5); + httpHeaderDelById(&tempheaders, HDR_CONTENT_RANGE); + httpHeaderDelById(&tempheaders, HDR_IF_MATCH); + httpHeaderDelById(&tempheaders, HDR_IF_MODIFIED_SINCE); + httpHeaderDelById(&tempheaders, HDR_IF_NONE_MATCH); + httpHeaderDelById(&tempheaders, HDR_IF_RANGE); + httpHeaderDelById(&tempheaders, HDR_RANGE); + httpHeaderPutStr(&tempheaders, HDR_CONNECTION, "close"); httpHeaderPutStr(&tempheaders, HDR_REFERER, urlCanonicalClean(request)); // login information should be inherited through urlResolveRelative.