Is there a way to compress all JSF Ajax requests?
Asked
Active
Viewed 363 times
1 Answers
3
Yes, just turn on GZIP compression at servletcontainer level. How exactly to do that depends on the container used. In case of for example Tomcat you can do that by adding compression="on"
to the HTTP <Connector>
of interest in /conf/server.xml
. You also need to ensure that text/xml
is one of the default mime types in the compressableMimeType
setting.

BalusC
- 1,082,665
- 372
- 3,610
- 3,555