Re: [Rabbit-proxy-users] no image compression
Brought to you by:
ernimril
From: Robert O. <ro...@kh...> - 2004-12-14 23:09:42
|
Holger Krull wrote: > i found that while using rabbit on some sites the images don't get > recompressed. That is normal. Small images should not get compressed, since the download time gain will be lost in latency (caused by rabbit converting the image). Also rabbit inspects the http headers and checks the mime type. If the server is badly configured or the cgi/jsp/servlet/asp/whatever is evil it will send a mime type that rabbit does not understand. > For every such image an entry in the error_log shows up. > [14/Dez/2004:22:03:06 GMT][MSG][unable to parse expire date: 'Thu, 14 > Dec 2006 22:03:06 GMT' for URI: > 'http://images.gmx.net/images/bs/21000/skyscraper_wechsler_v2.gif'] Hmmm, looks odd. Not sure exactly why that fails, I will have to test it. That is only a warning, it should not affect other image conversion. It might affect cache length though... > Is the compression problem related to the expire parsing problem? No. > I'm using java version "1.4.2_05" Do you have imagemagick installed and can rabbit find convert? Ok, doing a HEAD on the above image I get a response: 200 OK Cache-Control: max-age=63072000 Connection: close Date: Tue, 14 Dec 2004 23:06:48 GMT Accept-Ranges: bytes ETag: "223954-63c0-41b06ef7" Server: Apache Content-Length: 25536 Content-Type: image/gif Expires: Thu, 14 Dec 2006 23:06:48 GMT Last-Modified: Fri, 03 Dec 2004 13:49:43 GMT Client-Date: Tue, 14 Dec 2004 23:06:49 GMT Client-Peer: 213.165.64.210:80 Client-Response-Num: 1 Hmmm, not sure why rabbit does not convert that... Do you get anything in the error log? Does the image get larger after conversion? in that case rabbit will send the original... /robo |