Stop Caching Flash files 2007-11-06 - By Bill Barker
Back
"MyTest Email" <betasignup@(protected)> wrote in message news:6027d6f90711061744l1e9f5272t15bde1d5f004baa3@(protected) >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 http://tomcat.apache.org/tomcat-5 (See http://cat-5.ora-code.com).5-doc/config/context.html 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 thing.
> 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: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|