tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: Stop Caching Flash files
Date Wed, 07 Nov 2007 03:24:19 GMT

"MyTest Email" <> wrote in message
>I need to set tomcat to allways send a new copy of the flash file on the
> server and not send a cached copy, not have proxy servers cache the file,
> etc.
> I know that there are client, server and proxy issues but I'm looking to 
> see
> what tomcat configuration can do to assit me to have proxy servers and
> tomcat not cache the flash files.

It is possible to set cachingAllowed="false" on the <Context /> element to 
prevent Tomcat from caching, but except in extreme cases it is usually 
useless because of a short TTL (5sec by default).  See for more details 
on Tomcat caching options.

Otherwise, you have to roll your own Filter that will set the caching 
headers (Expires, Cache-Control, Pragma, etc) to control proxy server 
caching.  Tomcat doesn't provide anything out-of-the-box to do this sort of 

> With Apache's mod_expire you can set specific file types to not be cached.
> This is claimed to be great for proxy servers.
> e.g.
> ExpiresActive On
> ExpiresByType image/gif A2592000
> ExpiresByType image/png A2592000
> ExpiresByType image/jpg A2592000
> ExpiresByType image/jpeg A2592000
> ExpiresByType application/x-javascript A2592000
> ExpiresByType application/x-Shockwave-Flash A2592000
> is there an equivalent method for tomcat?
> Thanks in advance
> -Steve

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message