On Tue, 13 Oct 2009 18:51:51 +0200, Developer <dev002@xxxxxxxxxxxxx> wrote: > Hello, > I have a problem with squid squid-2.6.STABLE21-3.el5. > > Squid returns wrong content-type "text/plain" (only sometimes ) when > server returns "text/html". Returned page of server is deflated, server > response for bad proxy returned page (squid) is: > >>Cache-Controlpublic, s-maxage=80880, max-age=80880 >>Last-ModifiedWed, 07 Oct 2009 14:00:18 GMT >>ExpiresWed, 14 Oct 2009 14:00:19GMT >>Etag"C-c32bdb9d014d3629a195a42ede0690e7aeb23d63"Content-Rangebytes > 0-44573/44574 >>Accept-Ranges bytes >>Content-Language es >>Vary Cookie,Accept-Encoding >>Content-Encoding gzip >>Content-Type text/html; charset=UTF-8 > > Anyone knows workaround ? > > Thanks, Squid does not alter the content nor set the content-type header unless it is generating the content itself (ie an error page or FTP/Gopher directory listing). The text/plain you receive was received by squid from the origin server at some point in response to a particular identical set of request headers. Squid cached it and is serving that from storage. Since it has "Vary: Cookie" in the headers and almost every request has different cookie details (down to timestamps of last access etc) squid will be slowly accumulating a large collection of unusable copies for that URL. Any one of these could be the problem. Amos