I serve some files through the HTTPModule in asp.net. I want to know if there are any advantages in setting or not setting the Cache-Control header on something (for example, without a cache)?
Edit: The reason I am interested in this is because we ran into a problem when servicing office documents through an SSL session in IE results in an error (Cache Control is not installed with -cache). That is, you cannot download office documents via SSL in IE if you installed Cache-Control in no-cache.
Basically, I want to NOT include the Cache-Control header, but I wonder if it will cause problems?
Edit 2: Well, the Cache-Control header is missing. I tried the suggestions below, but had some problems. Each time I add the expires header or even modify Cache-Control when I try to open an Office 2007 document, it tries to open it as a zip. (I know that they really are zip files under covers), but when I don't use the expires header or cache control, IE opens them just fine, like Office documents. Unfortunately, I donβt have time to try to understand all this - since the code freezes for ten minutes :)
Thank you all for your help!
Eric
source share