Re: [squid-users] Squid swapping text/html for text/plain?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 22 Jun 2005 00:01:49 +0200 (CEST)

On Tue, 21 Jun 2005, Pedro Pessoa wrote:

> 1119379558.719 3921 192.168.1.100 TCP_MISS/200 13178 GET
> http://angulosolido.pt/index.html - DIRECT/195.23.112.199 text/plain [Host:
> angulosolido.pt\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
> rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept:
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language:
> en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset:
> ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection:
> keep-alive\r\n] [HTTP/1.1 200 OK\r\nDate: Tue, 21 Jun 2005 18:45:56
> GMT\r\nServer: Apache-AdvancedExtranetServer/2.0.50
> (Mandrakelinux/7.2.101mdk) mod_perl/1.99_16 Perl/v5.8.5 PHP/4.3.8\r\nETag:
> "1000d1-31fa-c17fccc0"\r\nAccept-Ranges: bytes\r\nLast-Modified: Tue, 14 Jun
> 2005 00:31:23 GMT\r\nContent-Length: 12794\r\nContent-Type:
> text/plain\r\nAge: 27776\r\nKeep-Alive: timeout=15, max=100\r\nConnection:
> Keep-Alive\r\n\r]
>
> Any thoughts?

Broken web server, returning text/plain content-type if the request has a
Cache-Control: max-age header but no Pragma: no-cache header.

   GET /index.html HTTP/1.0
   Host: angulosolido.pt
   Cache-Control: max-age=259200

returns text/plain

   GET /index.html HTTP/1.0
   Host: angulosolido.pt

or

   GET /index.html HTTP/1.0
   Host: angulosolido.pt
   Cache-Control: max-age=259200
   Pragma: no-cache

returns text/html..

not Squids fault, it just happens to trigger the quite obscure webserver
bug.

Regards
Henrik
Received on Tue Jun 21 2005 - 16:01:53 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jul 01 2005 - 12:00:03 MDT