Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 49478 invoked from network); 7 Nov 2007 03:23:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2007 03:23:36 -0000 Received: (qmail 90416 invoked by uid 500); 7 Nov 2007 03:23:11 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 90386 invoked by uid 500); 7 Nov 2007 03:23:11 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 90375 invoked by uid 99); 7 Nov 2007 03:23:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 19:23:11 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jak-tomcat-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2007 03:23:45 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IpbVA-0007vL-9n for users@tomcat.apache.org; Wed, 07 Nov 2007 03:22:48 +0000 Received: from pool-71-165-166-54.lsanca.dsl-w.verizon.net ([71.165.166.54]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Nov 2007 03:22:48 +0000 Received: from wbarker by pool-71-165-166-54.lsanca.dsl-w.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Nov 2007 03:22:48 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: users@tomcat.apache.org From: "Bill Barker" Subject: Re: Stop Caching Flash files Date: Tue, 6 Nov 2007 19:24:19 -0800 Lines: 57 Message-ID: References: <6027d6f90711061744l1e9f5272t15bde1d5f004baa3@mail.gmail.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-71-165-166-54.lsanca.dsl-w.verizon.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Original Sender: news X-Virus-Checked: Checked by ClamAV on apache.org "MyTest Email" wrote in message news:6027d6f90711061744l1e9f5272t15bde1d5f004baa3@mail.gmail.com... >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 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.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@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org