I had a similar problem statement and setup. You can read through the discussion here: http://www.mentby.com/Group/httpd-users/conditionally-setting-http-response-header.html
In summary, cleanest way is to write your custom servlet filter that sets right response headers to content served by tomcat. HTH. ------------------------------------------------------------------- Anurag Kapur Tech Lead, Digital Development News International Ltd http://www.linkedin.com/in/anuragkapur http://www.google.com/profiles/anuragkapur ------------------------------------------------------------------- On Thu, Sep 22, 2011 at 2:27 PM, Sandeep Kumar Kalpane <skalp...@sapient.com > wrote: > Hi,**** > > ** ** > > We have configured Apache 2 as reverse proxy and Tomcat as servlet > container. We have configured mod_expiry as mentioned below.**** > > LoadModule expires_module modules/mod_expires.so**** > > <IfModule mod_expires.c>**** > > ExpiresActive on**** > > ExpiresByType image/* M604800**** > > ExpiresByType text/css M604800**** > > ExpiresByType text/javascript M604800**** > > ExpiresByType application/javascript M604800**** > > ExpiresByType application/x-javascript M604800**** > > ExpiresByType application/x-shockwave-flash M604800**** > > </IfModule>**** > > ** ** > > By doing this we were able set expiry headers for all content residing in > Apache. However we were unable to configure expiry headers for content (like > images) coming via proxy (Tomcat).**** > > Appreciate your help.**** > > ** ** > > *Sandeep Kumar Kalpane* > > Senior Associate Platform L1 | SapientNitro**** > > ** ** > > Salarpuria GR Tech Park**** > > 6th Floor, VAYU Block**** > > #137 Whitefield Road**** > > Bangalore 560066**** > > Karnataka**** > > India**** > > ** ** > > *Desk:* +91 (80) 410 47000**** > > *Mobile:* +91 9980035353**** > > *Fax:* +91 (80) 410 47001**** > > *Email:* skalp...@sapient.com**** > > ** ** > > *sapient.com* > > ** ** > > The information transmitted is intended only for the person or entity to > which it is addressed and may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, or > taking of any action in reliance upon, this information by persons or > entities other than the intended recipient is prohibited. If you received > this in error, please contact the sender and delete the material from any > (your) computer.**** > > ** ** > > ***Please consider the environment before printing this email.******* > > ** ** >