Applying a servlet filter to a static resource

2010-03-11 Thread Matt Veitas
Hi, I am using Tomcat 6.0.24 and am trying to use a servlet filter on a static resource and am having some troubles as the 2nd request returns a 304. If I could modify the calling code to hit a servlet instead of the static resource, I could use that servlet to read the static resource (JSON),

Re: Applying a servlet filter to a static resource

2010-03-11 Thread André Warnier
Caldarale, Charles R wrote: From: Matt Veitas [mailto:mvei...@gmail.com] Subject: Applying a servlet filter to a static resource I am using Tomcat 6.0.24 and am trying to use a servlet filter on a static resource and am having some troubles as the 2nd request returns a 304. Are you sure

Re: Applying a servlet filter to a static resource

2010-03-11 Thread Pid
On 11/03/2010 14:38, Matt Veitas wrote: Hi, I am using Tomcat 6.0.24 and am trying to use a servlet filter on a static resource and am having some troubles as the 2nd request returns a 304. What are you trying to do in the Filter? Post some code. If I could modify the calling code to hit a

Re: Applying a servlet filter to a static resource

2010-03-11 Thread André Warnier
Pid wrote: On 11/03/2010 14:38, Matt Veitas wrote: ... If I could modify the calling code to hit a servlet instead of the static resource, I could use that servlet to read the static resource (JSON), perform some business logic and modify the JSON, and return that to the client, but

Re: Applying a servlet filter to a static resource

2010-03-11 Thread André Warnier
André Warnier wrote: ... I have not tested the following, and it is not based on any certain knowledge based on the HTTP RFCs, so treat with caution, but you could try a cheap trick : In the link to that document in the html page, add a dummy query string, like : instead of