Thank you very much ! indeed, it was that "sendFile" feature. I disabled it by setting sendFileSize to -1 in the default servlet (and I guess disabling it useSendfile="false" would be the same) after disabling this "sendfile" feature, all js files, small and large, are compressed correctly.
it's a pity it's not documented somewhere, that the "default" tomcat settings actually fails to compress anything above 48KB size. (well actually the defaults is not to compress at all....) problem is now solved, and I removed the custom gzip filter. Ran On Fri, Jan 14, 2011 at 9:30 AM, Konstantin Kolinko <knst.koli...@gmail.com>wrote: > 2011/1/13 Ran Berenfeld <ich...@ichess.co.il>: > > Hello > > I'm using tomcat 6 for a deployed website (http://www.ichess.co.il) > > and since the beginning, GZIP compression did not work for part of the > > files. > > the amazing thing is that the website have several javascript files, some > > quite small > > and some large, and the HTTP headers (for example when viewed using > Firefox > > "Live HTTP Headers" plugin) clearly shows that the compression works only > > for the small > > js file, and not for the large file. > > Maybe those are sent by "sendfile" and thus avoid being compressed. > There is certain size threshold (48 Kb, set by sendfileSize parameter > on DefaultServlet) > > Try to set useSendfile="false" on your Connector. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- רן ברנפלד מנהל אתר השחמט הישראלי *http://www.ichess.co.il*