• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTTP Response compression

 
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am running APACHE - 228 with Tomcat 6.0.14.

Is there any method to compress responses sent through AJP connector? The default implementation of AJP connector does not seem to support compression as of now. I also need to ensure that all responses are compressed but NOT below a particular response size (say 200kb).

I have gone through the net and came up with following options:

1. Compress responses sent from AJP connector. (couldn't find anything, documentation for AJP connector does not mention compression anywhere)
2. Compress responses with Apache 228 modules.
3. Applying Servlet filters into the web application. (Can we identify if a response is to be compressed or not based on its size?


Cheers,

Nitin
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A servlet side filter is the standard way of accomplishing this, and is certainly more efficient than transmitting the full bulk of the response through the AJP connector.

You will need an application that always sets content-length.

Bill
 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic