Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

cache control in apache  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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.
 
Bartender
Posts: 19211
85
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!