• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 2 and browser/proxy caching

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic