Chad_Roberts_21
Jan 08, 2007Nimbostratus
Problems downloading files with CACHE-CONTROL header
I asked this in response to a previous thread, but my question went unnoticed... I'll try again here.
I recently tried adding the following simple iRule to one of our web apps. It seemed to work well at first, but problems arose:
when HTTP_RESPONSE {
HTTP::header insert "PRAGMA" "NO-CACHE"
HTTP::header insert "CACHE-CONTROL" "NO-CACHE"
}
It works great for the most part... until a user attempts to download a file in IE. I've found a number of sites that talk about problems when downloading files in IE when the CACHE-CONTROL header is present, but I find it hard to believe that this long into the existence of IE it's still just a fact that IE, downloads, and that header cannot ever co-exist. Has anyone else ever run into this? I've also tried adding HTTP::version "1.1" but didn't see improvement.
When a user attempts to download a file, the error is something like this:Internet Explorer cannot download [file] from [server host name].
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
Any ideas?