Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Jetty server which does not have compression enabled (I tested this here). How can I enable compression?

share|improve this question
up vote 10 down vote accepted

You have to enable the GzipFilter to make Jetty return compressed content. Have a look here on how to do that:

You can also use the gzip init parameter to make Jetty search for compressed content. That means if the file file.txt is requested, Jetty will watch for a file named file.txt.gz and returns that.

share|improve this answer
brilliant. Thanks! – Zubair Jun 10 '11 at 15:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.