Want to enable GZip compression in Weblogic

后端 未结 2 976
再見小時候
再見小時候 2021-01-02 21:08

I want to enable GZIP compression for my static file like css styles, javascript which is serving from weblogic server. Can anyone help to how to configure this feature in w

2条回答
  •  渐次进展
    2021-01-02 21:40

    Go to http://sourceforge.net/projects/pjl-comp-filter/ to download it and update your web.xml file with the following config:

    
        CompressingFilter
        com.planetj.servlet.filter.compression.CompressingFilter
        includeContentTypestext/html,text/css,application/x-javascript
        compressionThreshold256
    
    
    
        CompressingFilter
        /*
    
    

提交回复
热议问题