struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RogerV <roger.var...@googlemail.com>
Subject Struts 2 & Browser Caching
Date Mon, 14 Jun 2010 07:53:06 GMT

Hi

While building the functionality of my web-app served up by Apache Tomcat, I
use 

<meta http-equiv="expires" content="0">   
<meta http-equiv="cache-control" content="no-cache">   
<meta http-equiv="pragma" content="no-cache"> 

in all my pages to ensure that requests to the pages with dynamic content
(most of them) actually reload from the server rather than from the browser
cache or any intermediate proxy server caches. Now I'm trying to add the
"eye-candy" and find that as well as going back to the server for data
(good), my browser (Firefox) is reloading all the images, css, js etc from
the server every time as well(bad) and slowing things down (very bad).

I'd be grateful for any hint/suggestions as to how to force the dynamic part
of the page to go back to the server but allow the browser to cache the
constant data (images, css etc)? Would running Tomcat behind a web-server to
load the static data help, or am I pretty much stuffed using the meta tags?

Regards


-- 
View this message in context: http://old.nabble.com/Struts-2---Browser-Caching-tp28876782p28876782.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message