• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

cache control in apache

Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi every one,

I have integrated apache with tomcat and everything is working fine. But when i am downloading an image through apache i am getting an error like "unable to download the file" in IE. when i have added cache-control in my code its working fine if i access through tomcat but not working when i am trying to do with apache. Some one please guide me how to set cache -control headers in apache for specific file downloads.

Saloon Keeper
Posts: 27863
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I ran across some references to that sort of behavior just yesterday. Apparently, IE erases the file from its temp directory before saving it unless caching is enabled.

Tomcat overrides (and disables) caching when SSL is in use by default for security reasons, but there's a Valve setting or 2 that can be used to remediate that (I don't have the references, so you'll have to Google for details on use). Since you mentioned Apache as well, that may make things more complicated, but I'm not sure. If you're using a Tomcat connector the no-cache headers may be coming from Tomcat, not Apache.
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic