Does anybody know of a way to get mod_gzip to compress jsp/servlet pages coming from another server? I have Apache servers (serving static content) in front of weblogic servers (serving jsp/servlet pages). I've added the following to the <IfModule mod_mime.c> section:
AddType text/html .jsp .qst
But no luck in getting those compressed. Does mod_gzip only compress pages that physically exist on the Apache server?
I figured it out. WebLogic was setting the content-type to "text/html; charset=ISO-8859-1" and the mod_gzip config was looking for just "text/html". So I set the mod_gzip config to compress content-type of ^.*text/.*$
I have used the technique mentioned above and now requests for JSP pages are being compressed. Well at least some of them. If a large response is generated, the log shows DECHUNK was invoked. However those pages are never displayed by the browser (IE 6 for me). If I turn off DECHUNK if the config file, then the content is NOT compressed but displays properly. Version info : Apache/1.3.12 (Win32) mod_gzip/220.127.116.11a
Log in to post a comment.