• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

cache control in apache

 
Greenhorn
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.


Regards,
Avinash.
 
Saloon Keeper
Posts: 28664
211
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic