C# .NET - disable cache when exporting to excel

Asked By abinav shankar on 27-Feb-13 02:30 AM
Hi 
 
I have used the following code to disable browser caching and it works for http and not for https 
is there a way to enable and disable caching during subsequent excel downloads?

Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);//for Ie
Response.Cache.SetNoStore();//for firefox