Tomcat Compression Does Not Add a Content-Encoding: gzip in the Header

后端 未结 5 1176
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 11:05

I am using Tomcat to compress my HTML content like this:



        
5条回答
  •  醉酒成梦
    2020-12-13 11:47

    Perhaps the compression Tomcat is referring to isn't gzip? It's a stab in the dark, but it might relate to white-space compression, or line trimming.

    I would imagine Tomcat would be a bit more explicit in this regard (here's hoping).

    We have the gzip filter mentioned by duffmo running in our application, the web.xml looks something like this:

    
    
    
        App-Web
    
        
    
        
        
            GZIPFilter
            weblogicx.servlet.gzip.filter.GZIPFilter
        
    
        [snip]    
    
    

提交回复
热议问题