mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread Tim Watts
Hi, Is it in theory possible to insert a perl output filter between mod_proxy and mod_cache? Or at least between mod_proxy and the client? The problem I'm trying to solve is this: We have 100+ web servers where apache fronts a separate tomcat server using mod_proxy. Sadly, the tomcat

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread André Warnier
Tim Watts wrote: Hi, Is it in theory possible to insert a perl output filter between mod_proxy and mod_cache? Or at least between mod_proxy and the client? The problem I'm trying to solve is this: We have 100+ web servers where apache fronts a separate tomcat server using mod_proxy.

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread Tim Watts
On 14/07/11 11:16, André Warnier wrote: Hi Andre, Thanks for the quick reply :) (That would probably be difficult, inefficient or both) Assuming that what you say about Tomcat is true (I don't know, and it may be worth asking this on the Tomcat list), I can think of another way to achieve

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread Alex J. G. Burzyński
Hi Tim, If you are after caching the responses, maybe an easier solution would be to use a reverse proxy - like Varnish? You would be then in complete control over the incoming and outgoing headers and could cache responses based on the url / inject Expires headers so browsers could cache them

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread Tim Watts
On 14/07/11 11:52, Alex J. G. Burzyński wrote: Hi Tim, If you are after caching the responses, maybe an easier solution would be to use a reverse proxy - like Varnish? You would be then in complete control over the incoming and outgoing headers and could cache responses based on the url /

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread André Warnier
Hi. I have to apologise. I misunderstood your first post, and I wanted to verify on the Tomcat list, so I quoted the following passage of your first post in my message there : Sadly, the tomcat dev's forgot to set any caching headers in the HTTP response (either Expires, Last-Modified or

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread Tim Watts
On 14/07/11 12:43, André Warnier wrote: Hi. I have to apologise. I misunderstood your first post, and I wanted to verify on the Tomcat list, so I quoted the following passage of your first post in my message there : Sadly, the tomcat dev's forgot to set any caching headers in the HTTP response

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread James Smith
On 14/07/2011 11:39, Tim Watts wrote: On 14/07/11 11:16, André Warnier wrote: Hi Andre, Thanks for the quick reply :) (That would probably be difficult, inefficient or both) Assuming that what you say about Tomcat is true (I don't know, and it may be worth asking this on the Tomcat list), I

RE: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread James B. Muir
, 2011 8:12 AM To: mod_perl list Subject: Re: mod_perl output filter and mod_proxy, mod_cache On 14/07/11 12:43, André Warnier wrote: Hi. I have to apologise. I misunderstood your first post, and I wanted to verify on the Tomcat list, so I quoted the following passage of your first post in my

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread André Warnier
Tim Watts wrote: ... LoL - I hate tomcat anyway (for it's fatness) so I don't mind if they hate me ;- I should have clarified as my Department's dev team (ie the ones who use tomcat here) rather than the Tomcat Developers themselves... Well, I said that too, and said I had misquoted you,

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread Tim Watts
On 14/07/11 14:38, André Warnier wrote: Tim Watts wrote: ... I think for this problem, I have to treat tomcat as a little, rather inefficient, black box .. They liked that quote then? ;- OT Rant I'm sure it's a lovely development environment (there must be some reason people use it) -

Re [OT]: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread André Warnier
I'll have to watch my language here, as I might otherwise get ostracised on that other list of mine. Tim Watts wrote: On 14/07/11 14:38, André Warnier wrote: Tim Watts wrote: ... I think for this problem, I have to treat tomcat as a little, rather inefficient, black box .. They liked

Re: Re [OT]: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread Niels Larsen
Yes, CPAN has very, very useful things. I consider its biggest problems 1) too difficult to find things when not knowing what one wants, 2) a huge undergrowth of modules that are either bad quality or unmaintained or duplicated with a later module. The number of lingering bugs are an obstacle, yet

Re: Re [OT]: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread Clinton Gormley
Hi Niels On Thu, 2011-07-14 at 20:09 +0200, Niels Larsen wrote: Yes, CPAN has very, very useful things. I consider its biggest problems 1) too difficult to find things when not knowing what one wants, 2) a huge undergrowth of modules that are either bad quality or unmaintained or duplicated

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread André Warnier
Tim Watts wrote: Hi, Is it in theory possible to insert a perl output filter between mod_proxy and mod_cache? Or at least between mod_proxy and the client? ... mod_headers and mod_proxy don't seem to play well together and mod-cache doesn't either (probably due to lack of cache control

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread André Warnier
And here is another link which might be interesting. It is a message on the Tomcat list (where I re-posted your original request, hem), from Rainer Jung, who is one of the Apache/Tomcat mod_jk connector developers : Yes, go for TC 7:

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread Tim Watts
Hi Andre, Thanks for such a detailed reply: On 14/07/11 21:07, André Warnier wrote: Back to the main issue. See this as just a bit more generic information, as to what/how you could think of solving your problem, apart from the other suggestions already submitted. 1) I am not sure about