On Fri, Sep 12, 2008 at 7:27 AM, Alex Rousskov <rousskov@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > On Sat, 2008-09-13 at 00:47 +1200, Amos Jeffries wrote: >> Alex Rousskov wrote: >> > On Thu, 2008-09-11 at 16:42 -0700, JL wrote: >> >> In my headers, the "HTTP_KEEP_ALIVE = 300" is not displaying and I'm >> >> not sure why. I have the following header_access rules: >> >> >> >> header_access X-Forwarded-For deny all >> >> header_access Proxy-Connection deny all >> >> header_access Via deny all >> >> header_access All allow all >> >> >> >> With these rules I get the following headers: >> >> >> >> HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, >> >> application/x-shockwave-flash, application/vnd.ms-excel, >> >> application/vnd.ms-powerpoint, application/msword, */* >> >> HTTP_ACCEPT_ENCODING = gzip, deflate >> >> HTTP_ACCEPT_LANGUAGE = en-us >> >> HTTP_CONNECTION = keep-alive >> >> HTTP_COOKIE = __utma=131785806.1971945049.1220944678.1221168849.1221173272.5; >> >> __utmz=131785806.1220944678.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); >> >> __utmb=131785806; __utmc=131785806 >> >> HTTP_HOST = www.proxyjudge.biz >> >> HTTP_REFERER = http://proxyjudge.biz/ >> >> HTTP_UA_CPU = x86 >> >> HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; >> >> .NET CLR 1.1.4322; .NET CLR 2.0.50727) >> >> REMOTE_ADDR = XXX.XXX.XXX.XXX >> >> REMOTE_PORT = 51600 >> >> REQUEST_METHOD = GET >> >> REQUEST_URI = /az.php >> >> >> >> I have even tried removing all the header_access rules except for >> >> header_access All allow all. However, HTTP_KEEP_ALIVE = 300 does not >> >> display. >> >> >> >> I am using Squid Version 2.6.STABLE6 on Red Hat Enterprise Linux 5. >> > >> > Do you see "Keep-Alive: 300" header in the packets that are sent to >> > Squid? Do you see "Keep-Alive: 300" header in the packets that Squid >> > sends to the origin server? If yes, perhaps Apache httpd (or equivalent) >> > is "translating" your Keep-Alive header into the Connection header, with >> > a value of Keep-Alive. >> > >> > What is the purpose of sending that Keep-Alive header? Can you send a >> > custom header like X-Alive? >> > >> > HTH, >> > >> > Alex. >> > >> > >> >> On a side note. Following that test link myself shows me that 3-HEAD is >> still sending Keep-Alive: header. I assume this is one that was >> optimized out of 2.6 for some reason? > > Looks like this is a known bug in Squid3: > http://www.squid-cache.org/bugs/show_bug.cgi?id=419 > > Alex. > > > I understand that the keep-alive header is not suppose to be forwarded but is there any way to send custom headers as Alex recommended? So basically I want Squid to automatically send HTTP_KEEP_ALIVE = 300 even if its not getting that information from the client or the server. The header just has to be there. Is that possible? Thanks in advance.