4

Is there a way to compress all JSF Ajax requests?

Ben
  • 10,020
  • 21
  • 94
  • 157

1 Answers1

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