Enabling GZIP - GWT Application

I am working on optimizing the payment load.

Here I read that I compressed your answers in gzip ,

So, I am setting up CompressionFilter

And set up the filter below to compress my gzip responses,

<filter>  
    <filter-name>compressionFilter</filter-name>  
    <filter-class>com.googlecode.webutilities.filters.CompressionFilter</filter-class>  
    <init-param>   
       <param-name>compressionThreshold</param-name>  
       <param-value>1024</param-value>  
    </init-param>  
    <init-param>   
       <param-name>ignoreMimes</param-name>  
       <param-value>images/*,video/*, multipart/x-gzip</param-value>
    </init-param>  

 </filter>  
 <filter-mapping>  
    <filter-name>compressionFilter</filter-name>  
    <url-pattern>/*</url-pattern>  
 </filter-mapping>  

It works great for files like js, html, css, etc., but where, like for the Ajax answer, I can't get it to work.

I use GWT RPC calls, which are gzip's answer by default. My assumption is that it tries gzip again, which is already gzip's answer and gives me an exception.

StackOverFlow does not allow to insert StackTrace. Therefore, adding images.

enter image description here

Any help on this? Anything I miss?

+3
source share
1

, ( gzip ) -...

, Apache ( nginx) . gzip, Apache ( gzip). , gzipping :

, , Ops.

0

All Articles