Re: Tomcat caching of static resources?

2008-12-11 Thread André Warnier
As a heretic post in this forum, which usually tends to recommend the opposite : what about putting an Apache with mod_cache in front of your Tomcat server ? Carefully set up, that would do what you want. - To unsubscribe,

RE: Tomcat caching of static resources?

2008-12-11 Thread Javabeat
Thanks Chuck for that. Perhaps my use of words was a little misleading. I guess what i was trying to say was that the response returned by Tomcat i.e expiry date etc was not conductive to caching for clients. In terms of headers, i dont want to cache 'pages as the data is very transient. What i

Re: Tomcat caching of static resources?

2008-12-11 Thread Gregor Schneider
Bill, On Thu, Dec 11, 2008 at 4:15 AM, Bill Barker [EMAIL PROTECTED] wrote: The article is referring to the fact that Tomcat adds cache headers by default to any page protected by a security-constraint to prevent someone else from stealing it from an intermediate proxy. The default settings

Re: Tomcat caching of static resources?

2008-12-11 Thread Javabeat
I agree that i dont think the 'in memory' Tomcat solutions is what i'm currently after, its very much a Tomcat 'heading stamp' issue i think. Interesting point you raise though regarding pushing the statics to an external server. Not ideal from a deployment perspective but that would certainly

Re: Tomcat caching of static resources?

2008-12-11 Thread Javabeat
The problem however is that i'm using a remote shared host. Whilst this gives me quite a lot of configuration potential i doubt it would allow me to setup Apache and adaptors etc. In a 'real production environment' this would very much be a preferred choice. awarnier wrote: As a heretic post

Re: Tomcat caching of static resources?

2008-12-11 Thread Javabeat
same applies on Firefox though, there may well be issues in IE as always but i'm not convinced this is the core problem here. Gregor Schneider wrote: Bill, On Thu, Dec 11, 2008 at 4:15 AM, Bill Barker [EMAIL PROTECTED] wrote: The article is referring to the fact that Tomcat adds cache

Re: Tomcat caching of static resources?

2008-12-11 Thread André Warnier
Sorry, I don't remember of your pages are protected or not (even the static ones I mean). But anyway, you might want to have a look at this : http://www.tuckey.org/urlrewrite/ Manual for 3.2, and scroll down to the set response-header bit. It's a servlet filter with a lot of capabilities. The

Re: Tomcat caching of static resources?

2008-12-11 Thread Gregor Schneider
On Thu, Dec 11, 2008 at 1:05 PM, Javabeat [EMAIL PROTECTED] wrote: same applies on Firefox though, there may well be issues in IE as always but i'm not convinced this is the core problem here. I strongly disagree. We do have a setup here having Apache HTTPD 2.2 fronting Tomcat 5.5, and the

RE: Tomcat caching of static resources?

2008-12-10 Thread Caldarale, Charles R
From: David Smith [mailto:[EMAIL PROTECTED] Subject: Tomcat caching of static resources? is it possible to cache static images and .js files in Tomcat? Think about what you just asked for: how would caching static resources in the server avoid them being downloaded by the browser? It's the

Re: Tomcat caching of static resources?

2008-12-10 Thread Bill Barker
Caldarale, Charles R [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: David Smith [mailto:[EMAIL PROTECTED] Subject: Tomcat caching of static resources? is it possible to cache static images and .js files in Tomcat? Think about what you just asked for: how would caching