8 Replies Latest reply on Aug 29, 2007 7:56 PM by Chetan Kadam

    GZipCompression Filter & a4j

    Chetan Kadam Newbie

      Hi All,

      I have added GZip Compression filter to my web.xml. But after adding that, I have started to notice substantial delay when downloading prototype.js file from the server. (http://hostname/a4j.res/prototype.js.jsf). It takes almost 20 seconds to finish the request.

      When inspected the response using FireBug, I found that compressed file was 14kb, but content-length header was set to 54 KB. This mismatch was causing the request to be open for longer time.

      Response Headers
      Server Apache-Coyote/1.1
      X-Powered-By Servlet 2.4; JBoss-4.0.3 (build: CVSTag=JBoss_4_0_3 date=200510042324)/Tomcat-5.5
      Last-Modified Wed, 29 Aug 2007 05:18:24 GMT
      Cache-Control max-age=86400
      Expires Thu, 30 Aug 2007 17:29:25 GMT
      Content-Encoding gzip
      Content-Type text/javascript
      Content-Length 54326
      Date Wed, 29 Aug 2007 17:32:02 GMT
      Request Headers
      Host smdevdk12:8080
      User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070725 Firefox/
      Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
      Accept-Language en-us,en;q=0.5
      Accept-Encoding gzip,deflate
      Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive 300
      Connection keep-alive
      Cookie JSESSIONID=8D2F7C25B04C3CEEEE97E53F8AC04C67.localhost