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 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 unfortunately I can't change the calling url.

<filter>
    <filter-name>TestFilter</filter-name>
    <filter-class>foo.TestFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>TestFilter</filter-name>
    <url-pattern>/js/config/my.json</url-pattern>
</filter-mapping>

Is there anything I can do to make Tomcat not return the 304 for the 2nd
request to my.json?

Are you setting 'no-cache' headers or modifying the content of the file?


p



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to