Is there a way to compress all JSF Ajax requests?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 thattext/xmlis one of the default mime types in thecompressableMimeTypesetting.