Which compression (is GZIP the most popular) servlet filter would you suggest?

后端 未结 5 1163
一生所求
一生所求 2020-11-29 03:40

I am looking for a GZIP servlet filter to be used in a high volume web-app. I doesn\'t want to use the container specific options.

Requirement

  1. Ability
5条回答
  •  执念已碎
    2020-11-29 04:10

    From what i've seen, most people generally use the gzip compression filter. Typically from ehcache.

    The GZIP filter implementation is: net.sf.ehcache.constructs.web.filter.GzipFilter

    The Maven coordinate for including it in your project is:

    
        net.sf.ehcache
        ehcache-web
        2.0.4
    
    

    You will also need to specify an SLF4J logging target. If you don't know what this is or don't care slf4j-jdk14 or slf4j-simple works:

    
        org.slf4j
        slf4j-jdk14
        1.6.4
    
    

提交回复
热议问题